diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-03 19:15:37 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2020-12-03 19:15:37 -0500 |
commit | d7fdc2b61e57985a4611ec3a591c002427e093d9 (patch) | |
tree | 254f33bc041f0cc332132ba137f52255d182aa1e | |
parent | dd707c9bfdc13fd90856576ddbb383efccef751c (diff) |
Ensure we always print a message if fsck doesnt't return 0
-rw-r--r-- | cmd_fsck.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |