]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
super-show: make the version annotation more terse
authorGabriel <g2p.code@gmail.com>
Wed, 1 May 2013 14:25:22 +0000 (16:25 +0200)
committerGabriel <g2p.code@gmail.com>
Wed, 8 May 2013 07:40:44 +0000 (09:40 +0200)
bcache-super-show.c

index 04e27268ee1979249d379bd194a4a2be4b147370..7ebb3952365fe4f3997d3852c6aefda581cd9bd1 100644 (file)
@@ -97,20 +97,16 @@ int main(int argc, char **argv)
 
        printf("sb.version\t\t%" PRIu64, sb.version);
        switch (sb.version) {
+               // These are handled the same by the kernel
                case BCACHE_SB_VERSION_CDEV:
-                       printf(" [cache device]\n");
-                       break;
-
                case BCACHE_SB_VERSION_CDEV_WITH_UUID:
-                       printf(" [cache device (new UUID format)]\n");
+                       printf(" [cache device]\n");
                        break;
 
+               // The second adds data offset support
                case BCACHE_SB_VERSION_BDEV:
-                       printf(" [backing device]\n");
-                       break;
-
                case BCACHE_SB_VERSION_BDEV_WITH_OFFSET:
-                       printf(" [backing device with data offset]\n");
+                       printf(" [backing device]\n");
                        break;
 
                default: