0001
0002
0003
0004
0005
0006 #ifndef BTRFS_XATTR_H
0007 #define BTRFS_XATTR_H
0008
0009 #include <linux/xattr.h>
0010
0011 extern const struct xattr_handler *btrfs_xattr_handlers[];
0012
0013 int btrfs_getxattr(struct inode *inode, const char *name,
0014 void *buffer, size_t size);
0015 int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
0016 const char *name, const void *value, size_t size, int flags);
0017 int btrfs_setxattr_trans(struct inode *inode, const char *name,
0018 const void *value, size_t size, int flags);
0019 ssize_t btrfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
0020
0021 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
0022 struct inode *inode, struct inode *dir,
0023 const struct qstr *qstr);
0024
0025 #endif