Enable btrfsck option '--repair' with option '--mode=lowmem'. Now lowmem mode only repairs wrong nbytes, dir isize.
Signed-off-by: Su Yue <suy.f...@cn.fujitsu.com> --- cmds-check.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index 6ab18b26..da5fe75f 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -12925,11 +12925,10 @@ int cmd_check(int argc, char **argv) } /* - * Not supported yet + * Support partially */ if (repair && check_mode == CHECK_MODE_LOWMEM) { - error("low memory mode doesn't support repair yet"); - exit(1); + warning("low memory mode support repair partially"); } radix_tree_init(); -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html