vfs_ceph: refactor if-error-return-else logic
[metze/samba-autobuild/.git] / source3 / modules / vfs_vxfs.h
1 /*
2 Unix SMB/CIFS implementation.
3 Wrap VxFS xattr calls in vfs functions.
4
5 Copyright (C) Veritas Technologies LLC <www.veritas.com> 2016
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 int vxfs_setxattr_path(const char *, const char *, const void *, size_t, int,
22                        bool);
23 int vxfs_setxattr_fd(int, const char *, const void *, size_t, int);
24
25 int vxfs_getxattr_path(const char *, const char *, void *, size_t);
26 int vxfs_getxattr_fd(int, const char *, void *, size_t);
27
28 int vxfs_removexattr_path(const char *, const char *, bool);
29 int vxfs_removexattr_fd(int, const char *);
30
31 int vxfs_listxattr_path(const char *, char *, size_t);
32 int vxfs_listxattr_fd(int, char *, size_t);
33
34 int vxfs_setwxattr_path(const char *, bool);
35 int vxfs_setwxattr_fd(int);
36
37 int vxfs_clearwxattr_path(const char *, bool);
38 int vxfs_clearwxattr_fd(int);
39
40 int vxfs_checkwxattr_path(const char *);
41 int vxfs_checkwxattr_fd(int);
42
43 void vxfs_init(void);