]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - cmd_fsck.c
Makefile: rename D to BCACHEFS_DEBUG
[bcachefs-tools-debian] / cmd_fsck.c
index 9ef69ad8002502cc62f67ec150924082bdf3ec4e..247e2072ab67c73551e9ca87e2ae77f779f0798a 100644 (file)
@@ -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;