Have cmd_dump fix errors

Some errors can't be ignored, and fsck and thus dump will only complete
if we're fixing errors.
This commit is contained in:
Kent Overstreet 2019-08-29 12:22:08 -04:00
parent aa2a42b0a6
commit ceee9244de

View File

@ -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) {