diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:25:14 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-10-15 16:25:14 -0400 |
commit | 38f79f9077fce76eabc5566319f33b8e800fb96d (patch) | |
tree | 2b7e92dc61209b55d5f119e1ddbf472cf32528d1 /debug-tree.c | |
parent | 08c66b7738e17ae2879d767a59ebec56c7a189b2 (diff) |
Switch to byte granular allocations
Diffstat (limited to 'debug-tree.c')
-rw-r--r-- | debug-tree.c | 11 |
1 files changed, 6 insertions, 5 deletions
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); |