mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-17 20:45:21 +00:00
btrfs-progs: print-tree: extract offset from the item key
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6122cb32c6
commit
e905d055f6
@ -997,6 +997,7 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l)
|
||||
u32 nr = btrfs_header_nritems(l);
|
||||
u64 objectid;
|
||||
u32 type;
|
||||
u64 offset;
|
||||
char flags_str[256];
|
||||
char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
|
||||
u8 uuid[BTRFS_UUID_SIZE];
|
||||
@ -1013,6 +1014,7 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l)
|
||||
btrfs_item_key(l, &disk_key, i);
|
||||
objectid = btrfs_disk_key_objectid(&disk_key);
|
||||
type = btrfs_disk_key_type(&disk_key);
|
||||
offset = btrfs_disk_key_offset(&disk_key);
|
||||
printf("\titem %d ", i);
|
||||
btrfs_print_key(&disk_key);
|
||||
printf(" itemoff %d itemsize %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user