]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/xattr.h
Update bcachefs sources to e82e656279 bcachefs: Cleanups for building in userspace
[bcachefs-tools-debian] / libbcachefs / xattr.h
1 #ifndef _BCACHEFS_XATTR_H
2 #define _BCACHEFS_XATTR_H
3
4 #include "str_hash.h"
5
6 extern const struct bch_hash_desc bch2_xattr_hash_desc;
7 extern const struct bkey_ops bch2_bkey_xattr_ops;
8
9 struct dentry;
10 struct xattr_handler;
11 struct bch_hash_info;
12
13 int bch2_xattr_get(struct bch_fs *, struct inode *,
14                   const char *, void *, size_t, int);
15 int __bch2_xattr_set(struct bch_fs *, u64, const struct bch_hash_info *,
16                   const char *, const void *, size_t, int, int, u64 *);
17 int bch2_xattr_set(struct bch_fs *, struct inode *,
18                   const char *, const void *, size_t, int, int);
19 ssize_t bch2_xattr_list(struct dentry *, char *, size_t);
20
21 extern const struct xattr_handler *bch2_xattr_handlers[];
22
23 #endif /* _BCACHEFS_XATTR_H */