diff options
author | Chris Mason <chris.mason@oracle.com> | 2010-04-06 09:30:17 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-04-06 09:30:17 -0400 |
commit | 075587c96c2f39e227847d13ca0ef305b13cd7d3 (patch) | |
tree | 849aca32b8beb2349dbc2e697b460690eb47f67c /quick-test.c | |
parent | 8f55b769c703c3f7cc8c94d165ea2587d4384ae9 (diff) |
Btrfs: add btrfs-debug-tree -b <block number> to print a single block
Diffstat (limited to 'quick-test.c')
-rw-r--r-- | quick-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quick-test.c b/quick-test.c index 351c7061..fa6fd838 100644 --- a/quick-test.c +++ b/quick-test.c @@ -85,7 +85,7 @@ int main(int ac, char **av) { fprintf(stderr, "search %d:%d\n", num, i); ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0); if (ret) { - btrfs_print_tree(root, root->node); + btrfs_print_tree(root, root->node, 1); printf("unable to find %d\n", num); exit(1); } @@ -148,7 +148,7 @@ int main(int ac, char **av) { fprintf(stderr, "search %d:%d\n", num, i); ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0); if (ret) { - btrfs_print_tree(root, root->node); + btrfs_print_tree(root, root->node, 1); printf("unable to find %d\n", num); exit(1); } @@ -196,7 +196,7 @@ int main(int ac, char **av) { btrfs_commit_transaction(trans, root); printf("tree size is now %d\n", tree_size); printf("root %p commit root %p\n", root->node, root->commit_root); - btrfs_print_tree(root, root->node); + btrfs_print_tree(root, root->node, 1); close_ctree(root); return 0; } |