mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
Ensure we always print a message if fsck doesnt't return 0
This commit is contained in:
parent
dd707c9bfd
commit
d7fdc2b61e
@ -93,10 +93,14 @@ int cmd_fsck(int argc, char *argv[])
|
||||
exit(8);
|
||||
}
|
||||
|
||||
if (test_bit(BCH_FS_ERRORS_FIXED, &c->flags))
|
||||
if (test_bit(BCH_FS_ERRORS_FIXED, &c->flags)) {
|
||||
fprintf(stderr, "%s: errors fixed\n", c->name);
|
||||
ret |= 1;
|
||||
if (test_bit(BCH_FS_ERROR, &c->flags))
|
||||
}
|
||||
if (test_bit(BCH_FS_ERROR, &c->flags)) {
|
||||
fprintf(stderr, "%s: still has errors\n", c->name);
|
||||
ret |= 4;
|
||||
}
|
||||
|
||||
bch2_fs_stop(c);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user