diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-05-05 09:45:26 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-05-05 09:45:26 -0400 |
commit | a62332eeb2235ef1cbdd270323bc68e106c632ac (patch) | |
tree | b8333ec9dbe1d653ed2ea922fd6d05cd0daee9c1 /dir-test.c | |
parent | aaf38b3ebd2fa9cb6948ff1d6a2cfda063170a6e (diff) |
Add a readonly flag open_ctree to force RO opens
Diffstat (limited to 'dir-test.c')
-rw-r--r-- | dir-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |