From 47b104b7f17b37813244691829daf4302831acf1 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Thu, 9 Feb 2012 10:38:05 -0500 Subject: 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 --- disk-io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'disk-io.c') diff --git a/disk-io.c b/disk-io.c index 58aec02b..b21a87f8 100644 --- a/disk-io.c +++ b/disk-io.c @@ -787,7 +787,8 @@ static struct btrfs_fs_info *__open_ctree_fd(int fp, const char *path, BTRFS_CSUM_TREE_OBJECTID, csum_root); if (ret) { printk("Couldn't setup csum tree\n"); - goto out_failed; + if (!partial) + goto out_failed; } csum_root->track_dirty = 1; -- cgit v1.2.3