mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
Set the label field in the cache set superblock if label is
specified. Change-Id: Ic1b2d45c9544acfbabd8ee99cfe59c4ae6fb4183
This commit is contained in:
parent
06a26b58fe
commit
6145b37851
@ -255,6 +255,9 @@ int make_bcache(NihCommand *command, char *const *args)
|
||||
uuid_generate(cache_set_sb->set_uuid.b);
|
||||
}
|
||||
|
||||
if (label)
|
||||
memcpy(cache_set_sb->label, label, sizeof(cache_set_sb->label));
|
||||
|
||||
if (csum_type) {
|
||||
SET_CACHE_PREFERRED_CSUM_TYPE(cache_set_sb,
|
||||
read_string_list_or_die(csum_type, csum_types,
|
||||
|
Loading…
Reference in New Issue
Block a user