Set the label field in the cache set superblock if label is

specified.

Change-Id: Ic1b2d45c9544acfbabd8ee99cfe59c4ae6fb4183
This commit is contained in:
Raghu Krishnamurthy 2014-12-08 19:23:39 -08:00
parent 06a26b58fe
commit 6145b37851

View File

@ -255,6 +255,9 @@ int make_bcache(NihCommand *command, char *const *args)
uuid_generate(cache_set_sb->set_uuid.b); uuid_generate(cache_set_sb->set_uuid.b);
} }
if (label)
memcpy(cache_set_sb->label, label, sizeof(cache_set_sb->label));
if (csum_type) { if (csum_type) {
SET_CACHE_PREFERRED_CSUM_TYPE(cache_set_sb, SET_CACHE_PREFERRED_CSUM_TYPE(cache_set_sb,
read_string_list_or_die(csum_type, csum_types, read_string_list_or_die(csum_type, csum_types,