btrfs-progs: print-tree: Print offset as tree objectid for ROOT_ITEM
authorQu Wenruo <wqu@suse.com>
Tue, 31 Oct 2017 06:07:58 +0000 (14:07 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Nov 2017 14:59:01 +0000 (15:59 +0100)
commit8c36786c8198bb7e440723240d9775d868d8409c
tree96074c37614459da304cfb36a2871eb344482bfb
parentaaf2dac5ef375e76bfbcac3d6ac27de0b0f62821
btrfs-progs: print-tree: Print offset as tree objectid for ROOT_ITEM

For cases like reloc trees and subvolume trees, their key offset is the
tree id.  The key will be printed as:

(TREE_RELOC ROOT_ITEM 18446744073709551607)

The negative number is long and even guys with real engineer brains
can't easily get the meaning.

This patch will change the output format to:

(TREE_RELOC ROOT_ITEM DATA_RELOC_TREE)

While for special offset value like 0 or (u64)-1, it's still shown as
is.

Signed-off-by: Qu Wenruo <wqu@suse.com>
[ reword comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
print-tree.c