path: root/disk-io.h
diff options
authorChris Mason <>2008-05-05 09:45:26 -0400
committerDavid Woodhouse <>2008-05-05 09:45:26 -0400
commita62332eeb2235ef1cbdd270323bc68e106c632ac (patch)
treeb8333ec9dbe1d653ed2ea922fd6d05cd0daee9c1 /disk-io.h
parentaaf38b3ebd2fa9cb6948ff1d6a2cfda063170a6e (diff)
Add a readonly flag open_ctree to force RO opens
Diffstat (limited to 'disk-io.h')
1 files changed, 3 insertions, 2 deletions
diff --git a/disk-io.h b/disk-io.h
index bd8ca63c..b0328445 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -31,8 +31,9 @@ struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root,
u64 bytenr, u32 blocksize);
int clean_tree_block(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct extent_buffer *buf);
-struct btrfs_root *open_ctree(const char *filename, u64 sb_bytenr);
-struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr);
+struct btrfs_root *open_ctree(const char *filename, u64 sb_bytenr, int writes);
+struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr,
+ int writes);
int close_ctree(struct btrfs_root *root);
int write_ctree_super(struct btrfs_trans_handle *trans,
struct btrfs_root *root);