summaryrefslogtreecommitdiff
path: root/print-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-10-29 14:37:41 -0400
committerChris Mason <chris.mason@oracle.com>2008-10-29 14:37:41 -0400
commitc830821ddf963037cee381fa004b3df0a5296a1b (patch)
treed15737dd304504857262eecf93bddf23e6f75a10 /print-tree.c
parentb431f25ec7cd4520bf31e47b8ea7c0512a9faaa1 (diff)
downloadbtrfs-progs-c830821ddf963037cee381fa004b3df0a5296a1b.tar.gz
Add disk format elements for compression
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'print-tree.c')
-rw-r--r--print-tree.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/print-tree.c b/print-tree.c
index 6c82c8a..31a3352 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -228,16 +228,23 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l)
struct btrfs_file_extent_item);
if (btrfs_file_extent_type(l, fi) ==
BTRFS_FILE_EXTENT_INLINE) {
- printf("\t\tinline extent data size %u\n",
- btrfs_file_extent_inline_len(l, item));
+ printf("\t\tinline extent data size %u "
+ "ram %llu compress %d\n",
+ btrfs_file_extent_inline_len(l, item),
+ (unsigned long long)
+ btrfs_file_extent_ram_bytes(l, fi),
+ btrfs_file_extent_compression(l, fi));
break;
}
printf("\t\textent data disk byte %llu nr %llu\n",
(unsigned long long)btrfs_file_extent_disk_bytenr(l, fi),
(unsigned long long)btrfs_file_extent_disk_num_bytes(l, fi));
- printf("\t\textent data offset %llu nr %llu\n",
+ printf("\t\textent data offset %llu nr %llu ram %llu\n",
(unsigned long long)btrfs_file_extent_offset(l, fi),
- (unsigned long long)btrfs_file_extent_num_bytes(l, fi));
+ (unsigned long long)btrfs_file_extent_num_bytes(l, fi),
+ (unsigned long long)btrfs_file_extent_ram_bytes(l, fi));
+ printf("\t\textent compression %d\n",
+ btrfs_file_extent_compression(l, fi));
break;
case BTRFS_BLOCK_GROUP_ITEM_KEY:
bi = btrfs_item_ptr(l, i,