]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: print-tree: print information about inode ref items
authorFilipe Manana <fdmanana@suse.com>
Thu, 11 Sep 2025 16:36:28 +0000 (17:36 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:22 +0000 (08:49 +0200)
commitcee3aa138724fd354acd5947d96a3d295b606899
tree0179de2ce278e6ce95eadfb06eb3701e9ccea8bf
parent93f818e62a081c707e6833f3ba2b7fa25c90199c
btrfs: print-tree: print information about inode ref items

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

Improve on this by printing the index 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