]> Gentwo Git Trees - linux/.git/commit
btrfs: print-tree: print range information for extent csum items
authorFilipe Manana <fdmanana@suse.com>
Mon, 15 Sep 2025 10:09:10 +0000 (11:09 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Sep 2025 06:49:22 +0000 (08:49 +0200)
commit4dc1c3d0ae6fbfaf8ce5727d1ae098275eb276c6
tree2410d06c85850dfe354a4eb67975cc67a1f9d165
parent7d2197b5dc0cd02e9758fd4dd0d1e7e3707dfbe7
btrfs: print-tree: print range information for extent csum items

Currently we don't print anything for extent csum items other than the
generic line with the key, item offset and item size. While one can still
determine the range the extent csum covers by doing a few simple
computations, it makes it more time consuming to analyse a leaf dump.
So add a line that prints information about the range covered by the
checksum using the same format as btrfs-progs. This is useful when
debugging log tree issues since we log extent csum items for new extents.

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