From 38f79f9077fce76eabc5566319f33b8e800fb96d Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Mon, 15 Oct 2007 16:25:14 -0400 Subject: Switch to byte granular allocations --- debug-tree.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'debug-tree.c') diff --git a/debug-tree.c b/debug-tree.c index 5a85b080..e3530fed 100644 --- a/debug-tree.c +++ b/debug-tree.c @@ -75,7 +75,8 @@ int main(int ac, char **av) { ri = btrfs_item_ptr(leaf, path.slots[0], struct btrfs_root_item); buf = read_tree_block(root->fs_info->tree_root, - btrfs_root_blocknr(ri)); + btrfs_root_bytenr(ri), + root->leafsize); switch(found_key.objectid) { case BTRFS_ROOT_TREE_OBJECTID: printf("root "); @@ -93,10 +94,10 @@ int main(int ac, char **av) { path.slots[0]++; } btrfs_release_path(root, &path); - printf("total blocks %llu\n", - (unsigned long long)btrfs_super_total_blocks(&super)); - printf("blocks used %llu\n", - (unsigned long long)btrfs_super_blocks_used(&super)); + printf("total bytes %llu\n", + (unsigned long long)btrfs_super_total_bytes(&super)); + printf("bytes used %llu\n", + (unsigned long long)btrfs_super_bytes_used(&super)); uuidbuf[36] = '\0'; uuid_unparse(super.fsid, uuidbuf); printf("uuid %s\n", uuidbuf); -- cgit v1.2.3