mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
if cache_set uuid is given in format command, then put the same
information in both set-uuid and user-uuid until support is added in the CLI to display user-uuid as part of query-devs and in format command to accept set_uuid and user_uuid. Issue DAT- Change-Id: I6f2306d858211933cb783f0efe8fe0ade64dd312
This commit is contained in:
parent
5730e47b6f
commit
38aa84d04b
13
bcacheadm.c
13
bcacheadm.c
@ -297,7 +297,18 @@ int make_bcache(NihCommand *command, char *const *args)
|
||||
cache_set_sb = calloc(1, sizeof(*cache_set_sb) +
|
||||
sizeof(struct cache_member) * devs);
|
||||
|
||||
uuid_generate(cache_set_sb->set_uuid.b);
|
||||
/*
|
||||
* Currently make the cache-set uuid and user_id same,
|
||||
* until proper support/usage is added.
|
||||
*/
|
||||
if (cache_set_uuid) {
|
||||
if (uuid_parse(cache_set_uuid, cache_set_sb->set_uuid.b)) {
|
||||
fprintf(stderr, "Bad uuid\n");
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
uuid_generate(cache_set_sb->set_uuid.b);
|
||||
}
|
||||
|
||||
if (cache_set_uuid) {
|
||||
if(uuid_parse(cache_set_uuid, cache_set_sb->user_uuid.b)) {
|
||||
|
Loading…
Reference in New Issue
Block a user