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

#include "str_hash.h"

extern const struct bch_hash_desc bch2_xattr_hash_desc;
extern const struct bkey_ops bch2_bkey_xattr_ops;

struct dentry;
struct xattr_handler;
struct bch_hash_info;

int bch2_xattr_get(struct bch_fs *, struct inode *,
		  const char *, void *, size_t, int);
int __bch2_xattr_set(struct bch_fs *, u64, const struct bch_hash_info *,
		  const char *, const void *, size_t, int, int, u64 *);
int bch2_xattr_set(struct bch_fs *, struct inode *,
		  const char *, const void *, size_t, int, int);
ssize_t bch2_xattr_list(struct dentry *, char *, size_t);

extern const struct xattr_handler *bch2_xattr_handlers[];

#endif /* _BCACHE_XATTR_H */