From ceee9244dedcca3df57b76fafb772207cdfbd6ee Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 29 Aug 2019 12:22:08 -0400 Subject: [PATCH] Have cmd_dump fix errors Some errors can't be ignored, and fsck and thus dump will only complete if we're fixing errors. --- cmd_debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd_debug.c b/cmd_debug.c index 808226d9..e11d495c 100644 --- a/cmd_debug.c +++ b/cmd_debug.c @@ -94,6 +94,7 @@ int cmd_dump(int argc, char *argv[]) opt_set(opts, norecovery, true); opt_set(opts, degraded, true); opt_set(opts, errors, BCH_ON_ERROR_CONTINUE); + opt_set(opts, fix_errors, FSCK_OPT_YES); while ((opt = getopt(argc, argv, "o:fh")) != -1) switch (opt) {