diff options
author | David Sterba <dsterba@suse.com> | 2016-01-25 18:44:13 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-11 16:15:43 +0100 |
commit | 9f07e1d76eaeeddedcf9651395b4a8f870df31f0 (patch) | |
tree | 291191508557ec239ce58ef8c498b71c2c021a92 /fs/btrfs/print-tree.c | |
parent | 585a3d0d238dfe42909cb58b0d05f644365fed14 (diff) |
btrfs: teach print_leaf about temporary item subtypes
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r-- | fs/btrfs/print-tree.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 7bd0bdfc9812..147dc6ca5de1 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c @@ -306,6 +306,17 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) printk(KERN_INFO "\t\tunknown persistent item\n"); } break; + case BTRFS_TEMPORARY_ITEM_KEY: + printk(KERN_INFO "\t\ttemporary item objectid %llu offset %llu\n", + key.objectid, key.offset); + switch (key.objectid) { + case BTRFS_BALANCE_OBJECTID: + printk(KERN_INFO "\t\tbalance status\n"); + break; + default: + printk(KERN_INFO "\t\tunknown temporary item\n"); + } + break; case BTRFS_DEV_REPLACE_KEY: printk(KERN_INFO "\t\tdev replace\n"); break; |