mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
super-show: make the version annotation more terse
This commit is contained in:
parent
13df67cd20
commit
9cbe774be2
@ -97,20 +97,16 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
printf("sb.version\t\t%" PRIu64, sb.version);
|
printf("sb.version\t\t%" PRIu64, sb.version);
|
||||||
switch (sb.version) {
|
switch (sb.version) {
|
||||||
|
// These are handled the same by the kernel
|
||||||
case BCACHE_SB_VERSION_CDEV:
|
case BCACHE_SB_VERSION_CDEV:
|
||||||
|
case BCACHE_SB_VERSION_CDEV_WITH_UUID:
|
||||||
printf(" [cache device]\n");
|
printf(" [cache device]\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BCACHE_SB_VERSION_CDEV_WITH_UUID:
|
// The second adds data offset support
|
||||||
printf(" [cache device (new UUID format)]\n");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case BCACHE_SB_VERSION_BDEV:
|
case BCACHE_SB_VERSION_BDEV:
|
||||||
printf(" [backing device]\n");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case BCACHE_SB_VERSION_BDEV_WITH_OFFSET:
|
case BCACHE_SB_VERSION_BDEV_WITH_OFFSET:
|
||||||
printf(" [backing device with data offset]\n");
|
printf(" [backing device]\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user