[PATCH 1/6] btrfs-progs: check: enable repair in lowmem mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Su Yue <suy.fnst@xxxxxxxxxxxxxx>

Turn on the option --repair with --mode==lowmem in btrfsck.

Signed-off-by: Su Yue <suy.fnst@xxxxxxxxxxxxxx>
---
 cmds-check.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/cmds-check.c b/cmds-check.c
index c5faa2b..829f7c5 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -12844,12 +12844,10 @@ int cmd_check(int argc, char **argv)
 	}
 
 	/*
-	 * Not supported yet
+	 * experimental and dangerous
 	 */
-	if (repair && check_mode == CHECK_MODE_LOWMEM) {
-		error("low memory mode doesn't support repair yet");
-		exit(1);
-	}
+	if (repair && check_mode == CHECK_MODE_LOWMEM)
+		printf("Low memory mode supports repair partially\n");
 
 	radix_tree_init();
 	cache_tree_init(&root_cache);
-- 
2.7.4



--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux