bcachefs-tools/libbcachefs/xattr.h
2017-04-14 20:40:31 -08:00

24 lines
712 B
C

#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 */