diff options
author | David Sterba <dsterba@suse.com> | 2016-11-01 13:39:44 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-09 13:47:30 +0100 |
commit | 8a50dc96000c84368a280dc0de09a7702bb8101f (patch) | |
tree | 8f530c2774f6287eef19069888e17b047a63e326 /print-tree.c | |
parent | 9da5b472d54093ce4e225a5fe847c88915901bdc (diff) |
btrfs-progs: teach print_leaf about temporary item subtypes
[ kernel patch 9f07e1d76eaeeddedcf9651395b4a8f870df31f0 ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'print-tree.c')
-rw-r--r-- | print-tree.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/print-tree.c b/print-tree.c index 15eaaab0..e3477227 100644 --- a/print-tree.c +++ b/print-tree.c @@ -1235,6 +1235,19 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) objectid); } break; + case BTRFS_TEMPORARY_ITEM_KEY: + printf("\t\ttemporary item objectid "); + print_objectid(stdout, objectid, BTRFS_TEMPORARY_ITEM_KEY); + printf(" offset %llu\n", (unsigned long long)offset); + switch (objectid) { + case BTRFS_BALANCE_OBJECTID: + printf("\t\tbalance status\n"); + break; + default: + printf("\t\tunknown temporary item objectid %llu\n", + objectid); + } + break; }; fflush(stdout); } |