Lines Matching refs:uuid

34 	char *uuid;  member
131 if (!strcmp(hc->uuid, str)) { in __get_uuid_cell()
160 static struct hash_cell *alloc_cell(const char *name, const char *uuid, in alloc_cell() argument
175 if (!uuid) in alloc_cell()
176 hc->uuid = NULL; in alloc_cell()
179 hc->uuid = kstrdup(uuid, GFP_KERNEL); in alloc_cell()
180 if (!hc->uuid) { in alloc_cell()
198 kfree(hc->uuid); in free_cell()
207 static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md) in dm_hash_insert() argument
214 cell = alloc_cell(name, uuid, md); in dm_hash_insert()
230 if (uuid) { in dm_hash_insert()
231 hc = __get_uuid_cell(uuid); in dm_hash_insert()
237 list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid)); in dm_hash_insert()
339 hc->uuid = new_uuid; in __set_cell_uuid()
421 if (change_uuid && hc->uuid) { in dm_hash_rename()
424 param->name, new, hc->uuid); in dm_hash_rename()
750 r = dm_hash_insert(param->name, *param->uuid ? param->uuid : NULL, md); in dev_create()
773 if (*param->uuid) { in __find_device_hash_cell()
777 hc = __get_uuid_cell(param->uuid); in __find_device_hash_cell()
799 if (hc->uuid) in __find_device_hash_cell()
800 strlcpy(param->uuid, hc->uuid, sizeof(param->uuid)); in __find_device_hash_cell()
802 param->uuid[0] = '\0'; in __find_device_hash_cell()
1781 } else if ((*param->uuid && *param->name)) { in validate_params()
1788 param->uuid[DM_UUID_LEN - 1] = '\0'; in validate_params()
1934 int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid) in dm_copy_name_and_uuid() argument
1951 if (uuid) in dm_copy_name_and_uuid()
1952 strcpy(uuid, hc->uuid ? : ""); in dm_copy_name_and_uuid()