summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-08-29 12:22:08 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-08-29 13:33:42 -0400
commitceee9244dedcca3df57b76fafb772207cdfbd6ee (patch)
tree498a329eed7e206f99b7dc850c355927b3819e2c /cmd_debug.c
parentaa2a42b0a6771b0a1ddd9912843b631666cc8c3d (diff)
Have cmd_dump fix errors
Some errors can't be ignored, and fsck and thus dump will only complete if we're fixing errors.
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index 808226d..e11d495 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) {