btrfs-progs: dump-tree: fix block group tree short name

The option -t recognizes tree names in various names and the stem must
not contain the "_TREE", which the bgt had.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-09-14 20:46:35 +02:00
parent a9fd50f85f
commit 553273a834
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ static u64 treeid_from_string(const char *str, const char **end)
{ "TREE_LOG", BTRFS_TREE_LOG_OBJECTID },
{ "TREE_RELOC", BTRFS_TREE_RELOC_OBJECTID },
{ "DATA_RELOC", BTRFS_DATA_RELOC_TREE_OBJECTID },
{ "BLOCK_GROUP_TREE", BTRFS_BLOCK_GROUP_TREE_OBJECTID },
{ "BLOCK_GROUP", BTRFS_BLOCK_GROUP_TREE_OBJECTID },
{ "RAID_STRIPE", BTRFS_RAID_STRIPE_TREE_OBJECTID },
};