btrfs-progs: dump-tree: add print support for verity items
'btrfs inspect-internals dump-tree' doesn't currently know about the two types of verity items and prints them as 'UNKNOWN.36' or 'UNKNOWN.37'. So add them to the known item types. Suggested-by: Boris Burkov <boris@bur.io> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
35789abef1
commit
c494724858
|
@ -1360,6 +1360,10 @@ static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_fs_info *info)
|
|||
#define BTRFS_INODE_REF_KEY 12
|
||||
#define BTRFS_INODE_EXTREF_KEY 13
|
||||
#define BTRFS_XATTR_ITEM_KEY 24
|
||||
|
||||
#define BTRFS_VERITY_DESC_ITEM_KEY 36
|
||||
#define BTRFS_VERITY_MERKLE_ITEM_KEY 37
|
||||
|
||||
#define BTRFS_ORPHAN_ITEM_KEY 48
|
||||
|
||||
#define BTRFS_DIR_LOG_ITEM_KEY 60
|
||||
|
|
|
@ -646,6 +646,8 @@ void print_key_type(FILE *stream, u64 objectid, u8 type)
|
|||
[BTRFS_DIR_LOG_ITEM_KEY] = "DIR_LOG_ITEM",
|
||||
[BTRFS_DIR_LOG_INDEX_KEY] = "DIR_LOG_INDEX",
|
||||
[BTRFS_XATTR_ITEM_KEY] = "XATTR_ITEM",
|
||||
[BTRFS_VERITY_DESC_ITEM_KEY] = "VERITY_DESC_ITEM",
|
||||
[BTRFS_VERITY_MERKLE_ITEM_KEY] = "VERITY_MERKLE_ITEM",
|
||||
[BTRFS_ORPHAN_ITEM_KEY] = "ORPHAN_ITEM",
|
||||
[BTRFS_ROOT_ITEM_KEY] = "ROOT_ITEM",
|
||||
[BTRFS_ROOT_REF_KEY] = "ROOT_REF",
|
||||
|
|
Loading…
Reference in New Issue