Lines Matching refs:uuid
51 char *uuid; member
116 c = strcmp(hc->uuid, str); in __get_uuid_cell()
183 c = strcmp(hc->uuid, new_hc->uuid); in __link_uuid()
216 static struct hash_cell *alloc_cell(const char *name, const char *uuid, in alloc_cell() argument
231 if (!uuid) in alloc_cell()
232 hc->uuid = NULL; in alloc_cell()
235 hc->uuid = kstrdup(uuid, GFP_KERNEL); in alloc_cell()
236 if (!hc->uuid) { in alloc_cell()
253 kfree(hc->uuid); in free_cell()
262 static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md) in dm_hash_insert() argument
269 cell = alloc_cell(name, uuid, md); in dm_hash_insert()
285 if (uuid) { in dm_hash_insert()
286 hc = __get_uuid_cell(uuid); in dm_hash_insert()
397 hc->uuid = new_uuid; in __set_cell_uuid()
478 if (change_uuid && hc->uuid) { in dm_hash_rename()
481 param->name, new, hc->uuid); in dm_hash_rename()
580 val = hc->uuid ? hc->uuid : ""; in filter_device()
608 if (!filter_device(hc, param->name, param->uuid)) in list_devices()
612 if (param->flags & DM_UUID_FLAG && hc->uuid) in list_devices()
613 needed += align_val(strlen(hc->uuid) + 1); in list_devices()
635 if (!filter_device(hc, param->name, param->uuid)) in list_devices()
651 if (hc->uuid) { in list_devices()
653 strcpy(uuid_ptr, hc->uuid); in list_devices()
654 uuid_ptr = align_ptr(uuid_ptr + strlen(hc->uuid) + 1); in list_devices()
895 r = dm_hash_insert(param->name, *param->uuid ? param->uuid : NULL, md); in dev_create()
918 if (*param->uuid) { in __find_device_hash_cell()
921 param->uuid, param->name, (unsigned long long)param->dev); in __find_device_hash_cell()
925 hc = __get_uuid_cell(param->uuid); in __find_device_hash_cell()
950 if (hc->uuid) in __find_device_hash_cell()
951 strscpy(param->uuid, hc->uuid, sizeof(param->uuid)); in __find_device_hash_cell()
953 param->uuid[0] = '\0'; in __find_device_hash_cell()
2016 } else if (*param->uuid && *param->name) { in validate_params()
2023 param->uuid[DM_UUID_LEN - 1] = '\0'; in validate_params()
2204 int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid) in dm_copy_name_and_uuid() argument
2221 if (uuid) in dm_copy_name_and_uuid()
2222 strcpy(uuid, hc->uuid ? : ""); in dm_copy_name_and_uuid()
2273 r = dm_hash_insert(dmi->name, *dmi->uuid ? dmi->uuid : NULL, md); in dm_early_create()