summaryrefslogtreecommitdiff
path: root/libbcache/xattr.h
blob: c48c7acf361de67f905099def2e3bcd75b08d7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _BCACHE_XATTR_H
#define _BCACHE_XATTR_H

extern const struct bkey_ops bch_bkey_xattr_ops;

struct dentry;
struct xattr_handler;
struct bch_hash_info;

int bch_xattr_get(struct bch_fs *, struct inode *,
		  const char *, void *, size_t, int);
int __bch_xattr_set(struct bch_fs *, u64, const struct bch_hash_info *,
		  const char *, const void *, size_t, int, int, u64 *);
int bch_xattr_set(struct bch_fs *, struct inode *,
		  const char *, const void *, size_t, int, int);
ssize_t bch_xattr_list(struct dentry *, char *, size_t);

extern const struct xattr_handler *bch_xattr_handlers[];

#endif /* _BCACHE_XATTR_H */