diff options
author | Shaoxiong Li <dahefanteng@gmail.com> | 2018-09-13 09:34:37 +0800 |
---|---|---|
committer | Coly Li <colyli@suse.de> | 2019-09-28 15:41:45 +0800 |
commit | 03eed4cd5075169a40a726d31ca12e88953074d6 (patch) | |
tree | f563d8f49de825576ef69d78977b60f8fc56e9be | |
parent | 7f5f654ff252cfc899c52c848f3e08c55f778f51 (diff) | |
download | bcache-tools-03eed4cd5075169a40a726d31ca12e88953074d6.tar.gz |
bcache-tools: Add 'label' field
When using 'bcache make' command,you can see the label
information in the output.
Signed-off-by: Shaoxiong Li <dahefanteng@gmail.com>
Signed-off-by: Coly Li <colyli@suse.de>
-rw-r--r-- | make.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -308,6 +308,7 @@ static void write_sb(char *dev, unsigned int block_size, } printf("Name %s\n", dev); + printf("Label %s\n", label); printf("Type data\n"); printf("UUID: %s\n" "Set UUID: %s\n" @@ -334,6 +335,7 @@ static void write_sb(char *dev, unsigned int block_size, SET_CACHE_REPLACEMENT(&sb, cache_replacement_policy); printf("Name %s\n", dev); + printf("Label %s\n", label); printf("Type cache\n"); printf("UUID: %s\n" "Set UUID: %s\n" |