Change cmd_dump to use FSCK_OPT_NO

We just want cmd_dump to walk metadata, not fix errors - the mark and
sweep code is being fixed to make sure it continues on error.
This commit is contained in:
Kent Overstreet 2021-04-24 17:13:39 -04:00
parent cb84ad03a5
commit 78905d7540

View File

@ -115,7 +115,7 @@ int cmd_dump(int argc, char *argv[])
opt_set(opts, norecovery, true); opt_set(opts, norecovery, true);
opt_set(opts, degraded, true); opt_set(opts, degraded, true);
opt_set(opts, errors, BCH_ON_ERROR_continue); opt_set(opts, errors, BCH_ON_ERROR_continue);
opt_set(opts, fix_errors, FSCK_OPT_YES); opt_set(opts, fix_errors, FSCK_OPT_NO);
while ((opt = getopt(argc, argv, "o:fvh")) != -1) while ((opt = getopt(argc, argv, "o:fvh")) != -1)
switch (opt) { switch (opt) {