summaryrefslogtreecommitdiff
path: root/dir-test.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-05 09:45:26 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-05-05 09:45:26 -0400
commita62332eeb2235ef1cbdd270323bc68e106c632ac (patch)
treeb8333ec9dbe1d653ed2ea922fd6d05cd0daee9c1 /dir-test.c
parentaaf38b3ebd2fa9cb6948ff1d6a2cfda063170a6e (diff)
Add a readonly flag open_ctree to force RO opens
Diffstat (limited to 'dir-test.c')
-rw-r--r--dir-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dir-test.c b/dir-test.c
index 54ddee2d..44f27587 100644
--- a/dir-test.c
+++ b/dir-test.c
@@ -435,7 +435,7 @@ int main(int ac, char **av)
struct btrfs_trans_handle *trans;
radix_tree_init();
- root = open_ctree(av[ac-1], &super);
+ root = open_ctree(av[ac-1], &super, 0);
trans = btrfs_start_transaction(root, 1);
dir_oid = btrfs_super_root_dir(&super);
@@ -478,7 +478,7 @@ int main(int ac, char **av)
btrfs_header_level(&root->node->node.header),
btrfs_header_nritems(&root->node->node.header));
close_ctree(root, &super);
- root = open_ctree("dbfile", &super);
+ root = open_ctree("dbfile", &super, 0);
}
while(count--) {
ret = ops[op](trans, root, &radix);