Lines Matching refs:uuid
43 char *uuid; member
132 if (!strcmp(hc->uuid, str)) { in __get_uuid_cell()
161 static struct hash_cell *alloc_cell(const char *name, const char *uuid, in alloc_cell() argument
176 if (!uuid) in alloc_cell()
177 hc->uuid = NULL; in alloc_cell()
180 hc->uuid = kstrdup(uuid, GFP_KERNEL); in alloc_cell()
181 if (!hc->uuid) { in alloc_cell()
199 kfree(hc->uuid); in free_cell()
208 static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md) in dm_hash_insert() argument
215 cell = alloc_cell(name, uuid, md); in dm_hash_insert()
231 if (uuid) { in dm_hash_insert()
232 hc = __get_uuid_cell(uuid); in dm_hash_insert()
238 list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid)); in dm_hash_insert()
340 hc->uuid = new_uuid; in __set_cell_uuid()
422 if (change_uuid && hc->uuid) { in dm_hash_rename()
425 param->name, new, hc->uuid); in dm_hash_rename()
762 r = dm_hash_insert(param->name, *param->uuid ? param->uuid : NULL, md); in dev_create()
785 if (*param->uuid) { in __find_device_hash_cell()
789 hc = __get_uuid_cell(param->uuid); in __find_device_hash_cell()
811 if (hc->uuid) in __find_device_hash_cell()
812 strlcpy(param->uuid, hc->uuid, sizeof(param->uuid)); in __find_device_hash_cell()
814 param->uuid[0] = '\0'; in __find_device_hash_cell()
1809 } else if (*param->uuid && *param->name) { in validate_params()
1816 param->uuid[DM_UUID_LEN - 1] = '\0'; in validate_params()
2002 int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid) in dm_copy_name_and_uuid() argument
2019 if (uuid) in dm_copy_name_and_uuid()
2020 strcpy(uuid, hc->uuid ? : ""); in dm_copy_name_and_uuid()