summaryrefslogtreecommitdiff
path: root/bcache-super-show.c
diff options
context:
space:
mode:
authorGabriel <g2p.code@gmail.com>2013-05-01 16:25:22 +0200
committerGabriel <g2p.code@gmail.com>2013-05-08 09:40:44 +0200
commit9cbe774be28192963f2e02ecf9443d725e854f41 (patch)
treef62510cb5a8625280f9506c2aa2a3c9dd4263bc7 /bcache-super-show.c
parent13df67cd20664e59e96c756ac084ba85ceb1fcca (diff)
super-show: make the version annotation more terse
Diffstat (limited to 'bcache-super-show.c')
-rw-r--r--bcache-super-show.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/bcache-super-show.c b/bcache-super-show.c
index 04e2726..7ebb395 100644
--- a/bcache-super-show.c
+++ b/bcache-super-show.c
@@ -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: