X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libbcachefs%2Fxattr.h;h=b3e16729bcbba472f15302a3c3bb0b560330c8ce;hb=17d1c4f4fe29453fbb4087eb5de8aa6f9e6605c7;hp=f4f896545e1c29f0ff35018263bf6b227250567b;hpb=e61b61c03bf1f1eedc5e2dbd6887f77e45144a31;p=bcachefs-tools-debian diff --git a/libbcachefs/xattr.h b/libbcachefs/xattr.h index f4f8965..b3e1672 100644 --- a/libbcachefs/xattr.h +++ b/libbcachefs/xattr.h @@ -6,13 +6,14 @@ extern const struct bch_hash_desc bch2_xattr_hash_desc; -const char *bch2_xattr_invalid(const struct bch_fs *, struct bkey_s_c); +int bch2_xattr_invalid(const struct bch_fs *, struct bkey_s_c, unsigned, struct printbuf *); void bch2_xattr_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); -#define bch2_bkey_ops_xattr (struct bkey_ops) { \ +#define bch2_bkey_ops_xattr ((struct bkey_ops) { \ .key_invalid = bch2_xattr_invalid, \ .val_to_text = bch2_xattr_to_text, \ -} + .min_val_size = 8, \ +}) static inline unsigned xattr_val_u64s(unsigned name_len, unsigned val_len) {