Lines Matching defs:uuid
26 * name or uuid.
33 char *uuid;
117 if (!strcmp(hc->uuid, str)) {
128 static struct hash_cell *alloc_cell(const char *name, const char *uuid,
143 if (!uuid)
144 hc->uuid = NULL;
147 hc->uuid = kstrdup(uuid, GFP_KERNEL);
148 if (!hc->uuid) {
166 kfree(hc->uuid);
172 * The kdev_t and uuid of a device can never change once it is
175 static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md)
182 cell = alloc_cell(name, uuid, md);
198 if (uuid) {
199 hc = __get_uuid_cell(uuid);
205 list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid));
580 r = dm_hash_insert(param->name, *param->uuid ? param->uuid : NULL, md);
602 if (*param->uuid)
603 return __get_uuid_cell(param->uuid);
631 * Sneakily write in both the name and the uuid
635 if (hc->uuid)
636 strncpy(param->uuid, hc->uuid, sizeof(param->uuid)-1);
638 param->uuid[0] = '\0';
1390 } else if ((*param->uuid && *param->name)) {
1391 DMWARN("only supply one of name or uuid, cmd(%u)", cmd);
1397 param->uuid[DM_UUID_LEN - 1] = '\0';