From 4d11434c123b30c695db9294b7db352e50ba85bd Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Wed, 4 Apr 2007 13:27:22 -0400 Subject: update print-tree for inline data --- print-tree.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'print-tree.c') diff --git a/print-tree.c b/print-tree.c index 5fa8d8a5..70058b0c 100644 --- a/print-tree.c +++ b/print-tree.c @@ -16,6 +16,7 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) struct btrfs_inode_map_item *mi; struct btrfs_inode_item *ii; struct btrfs_file_extent_item *fi; + char *p; u32 type; printf("leaf %Lu ptrs %d free space %d parent %Lu generation %Lu\n", @@ -42,6 +43,10 @@ void btrfs_print_leaf(struct btrfs_root *root, struct btrfs_leaf *l) btrfs_inode_size(ii), btrfs_inode_mode(ii)); break; + case BTRFS_INLINE_DATA_KEY: + p = btrfs_item_ptr(l, i, char); + printf("\t\tinline data %.*s\n", 10, p); + break; case BTRFS_DIR_ITEM_KEY: di = btrfs_item_ptr(l, i, struct btrfs_dir_item); printf("\t\tdir oid %Lu flags %u type %u\n", -- cgit v1.2.3