]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/dirent.h
cmd_set_passphrase: revoke the invalidated key
[bcachefs-tools-debian] / libbcachefs / dirent.h
index 1bb4d802bc1db1ea8bb79a454074a51afb595324..e9fa1df38232bf34d43afb7a6a671212f74ff5e0 100644 (file)
@@ -4,15 +4,18 @@
 
 #include "str_hash.h"
 
+enum bkey_invalid_flags;
 extern const struct bch_hash_desc bch2_dirent_hash_desc;
 
-const char *bch2_dirent_invalid(const struct bch_fs *, struct bkey_s_c);
+int bch2_dirent_invalid(const struct bch_fs *, struct bkey_s_c,
+                       enum bkey_invalid_flags, struct printbuf *);
 void bch2_dirent_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
 
-#define bch2_bkey_ops_dirent (struct bkey_ops) {       \
+#define bch2_bkey_ops_dirent ((struct bkey_ops) {      \
        .key_invalid    = bch2_dirent_invalid,          \
        .val_to_text    = bch2_dirent_to_text,          \
-}
+       .min_val_size   = 16,                           \
+})
 
 struct qstr;
 struct file;
@@ -21,7 +24,7 @@ struct bch_fs;
 struct bch_hash_info;
 struct bch_inode_info;
 
-unsigned bch2_dirent_name_bytes(struct bkey_s_c_dirent);
+struct qstr bch2_dirent_get_name(struct bkey_s_c_dirent d);
 
 static inline unsigned dirent_val_u64s(unsigned len)
 {