1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#ifndef __XATTR__
20#define __XATTR__
21
22#include <linux/xattr.h>
23
24extern const struct xattr_handler btrfs_xattr_acl_access_handler;
25extern const struct xattr_handler btrfs_xattr_acl_default_handler;
26extern const struct xattr_handler *btrfs_xattr_handlers[];
27
28extern ssize_t __btrfs_getxattr(struct inode *inode, const char *name,
29 void *buffer, size_t size);
30extern int __btrfs_setxattr(struct btrfs_trans_handle *trans,
31 struct inode *inode, const char *name,
32 const void *value, size_t size, int flags);
33extern ssize_t btrfs_getxattr(struct dentry *dentry, const char *name,
34 void *buffer, size_t size);
35extern int btrfs_setxattr(struct dentry *dentry, const char *name,
36 const void *value, size_t size, int flags);
37extern int btrfs_removexattr(struct dentry *dentry, const char *name);
38
39extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
40 struct inode *inode, struct inode *dir,
41 const struct qstr *qstr);
42
43#endif
44