mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-23 23:45:20 +00:00
btrfs-progs: fix build of quick-test
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
e444c7bfa6
commit
9d26ce02cb
@ -94,7 +94,7 @@ int main(int ac, char **av) {
|
|||||||
fprintf(stderr, "search %d:%d\n", num, i);
|
fprintf(stderr, "search %d:%d\n", num, i);
|
||||||
ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0);
|
ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
btrfs_print_tree(root, root->node, 1);
|
btrfs_print_tree(root->node, 1);
|
||||||
printf("unable to find %d\n", num);
|
printf("unable to find %d\n", num);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -171,7 +171,7 @@ int main(int ac, char **av) {
|
|||||||
fprintf(stderr, "search %d:%d\n", num, i);
|
fprintf(stderr, "search %d:%d\n", num, i);
|
||||||
ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0);
|
ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
btrfs_print_tree(root, root->node, 1);
|
btrfs_print_tree(root->node, 1);
|
||||||
printf("unable to find %d\n", num);
|
printf("unable to find %d\n", num);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -220,7 +220,7 @@ int main(int ac, char **av) {
|
|||||||
btrfs_commit_transaction(trans, root);
|
btrfs_commit_transaction(trans, root);
|
||||||
printf("tree size is now %d\n", tree_size);
|
printf("tree size is now %d\n", tree_size);
|
||||||
printf("root %p commit root %p\n", root->node, root->commit_root);
|
printf("root %p commit root %p\n", root->node, root->commit_root);
|
||||||
btrfs_print_tree(root, root->node, 1);
|
btrfs_print_tree(root->node, 1);
|
||||||
close_ctree(root);
|
close_ctree(root);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user