]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: print-tree: print information about inode extref items
authorFilipe Manana <fdmanana@suse.com>
Fri, 12 Sep 2025 16:25:12 +0000 (17:25 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:22 +0000 (08:49 +0200)
commit7317555f4553aaec9dc732e24c88b8258b3c9deb
tree8adb82d9d10d9d4796f73a9565c6b27f5229a407
parentcee3aa138724fd354acd5947d96a3d295b606899
btrfs: print-tree: print information about inode extref items

Currently we ignore inode extref items, we just print their key, item
offset in the leaf and their size, no information about their content
like the index number, parent inode, name length and name.

Improve on this by printing the index, parent and name length in the same
format as btrfs-progs. Note that we don't print the name, as that would
require some processing and escaping like we do in btrfs-progs, and that
could expose sensitive information for some users in case they share their
dmesg/syslog and it contains a leaf dump. So for now leave names out.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/print-tree.c