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 cf4d8e09..58839314 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -12973,11 +12973,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.13.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