path: root/ctree.h
diff options
authorChris Mason <>2012-02-09 10:38:05 -0500
committerChris Mason <>2012-02-09 10:38:05 -0500
commit47b104b7f17b37813244691829daf4302831acf1 (patch)
tree957c640525f493e03640f136860570dee022cdab /ctree.h
parent0bc5e18aace8d2535adc57cfa95c2481e94d60f7 (diff)
btrfsck: add --init-csum-tree to replace the csum root with an empty one
This will effectively delete all of your crcs, but at least you'll be able to mount the FS with nodatasum. Signed-off-by: Chris Mason <>
Diffstat (limited to 'ctree.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 6f128696..c53f65a8 100644
--- a/ctree.h
+++ b/ctree.h
@@ -1851,6 +1851,8 @@ int btrfs_update_block_group(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 bytenr, u64 num,
int alloc, int mark_free);
/* ctree.c */
+int btrfs_fsck_reinit_root(struct btrfs_trans_handle *trans,
+ struct btrfs_root *root);
void reada_for_search(struct btrfs_root *root, struct btrfs_path *path,
int level, int slot, u64 objectid);
struct extent_buffer *read_node_slot(struct btrfs_root *root,