diff options
Diffstat (limited to 'bcacheadm.c')
-rw-r--r-- | bcacheadm.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/bcacheadm.c b/bcacheadm.c index ee1a7d80..0a7585f0 100644 --- a/bcacheadm.c +++ b/bcacheadm.c @@ -297,18 +297,7 @@ int make_bcache(NihCommand *command, char *const *args) cache_set_sb = calloc(1, sizeof(*cache_set_sb) + sizeof(struct cache_member) * devs); - /* - * 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); - } + uuid_generate(cache_set_sb->set_uuid.b); if (cache_set_uuid) { if(uuid_parse(cache_set_uuid, cache_set_sb->user_uuid.b)) { @@ -595,7 +584,7 @@ int bcache_query_devs(NihCommand *command, char *const *args) char set_uuid_str[40], dev_uuid_str[40]; char *clus_uuid = (char *)sb->label; - uuid_unparse(sb->set_uuid.b, set_uuid_str); + uuid_unparse(sb->user_uuid.b, set_uuid_str); uuid_unparse(sb->disk_uuid.b, dev_uuid_str); if (!strcmp(clus_uuid, "")) clus_uuid = "None"; @@ -641,7 +630,7 @@ int bcache_status(NihCommand *command, char *const *args) printf("Unable to find a superblock\n"); return -1; } else { - uuid_unparse(seq_sb->set_uuid.b, set_uuid); + uuid_unparse(seq_sb->user_uuid.b, set_uuid); printf("%-50s%-15s%-4s\n", "uuid", "state", "tier"); } |