mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
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:
parent
aa2a42b0a6
commit
ceee9244de
@ -94,6 +94,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);
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "o:fh")) != -1)
|
while ((opt = getopt(argc, argv, "o:fh")) != -1)
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user