Lines Matching refs:uuid

47 	char *uuid;  member
106 int c = strcmp(hc->uuid, str); in __get_uuid_cell()
169 int c = strcmp(hc->uuid, new_hc->uuid); in __link_uuid()
200 static struct hash_cell *alloc_cell(const char *name, const char *uuid, in alloc_cell() argument
215 if (!uuid) in alloc_cell()
216 hc->uuid = NULL; in alloc_cell()
219 hc->uuid = kstrdup(uuid, GFP_KERNEL); in alloc_cell()
220 if (!hc->uuid) { in alloc_cell()
237 kfree(hc->uuid); in free_cell()
246 static int dm_hash_insert(const char *name, const char *uuid, struct mapped_device *md) in dm_hash_insert() argument
253 cell = alloc_cell(name, uuid, md); in dm_hash_insert()
269 if (uuid) { in dm_hash_insert()
270 hc = __get_uuid_cell(uuid); in dm_hash_insert()
379 hc->uuid = new_uuid; in __set_cell_uuid()
461 if (change_uuid && hc->uuid) { in dm_hash_rename()
464 param->name, new, hc->uuid); in dm_hash_rename()
561 val = hc->uuid ? hc->uuid : ""; in filter_device()
589 if (!filter_device(hc, param->name, param->uuid)) in list_devices()
593 if (param->flags & DM_UUID_FLAG && hc->uuid) in list_devices()
594 needed += align_val(strlen(hc->uuid) + 1); in list_devices()
615 if (!filter_device(hc, param->name, param->uuid)) in list_devices()
631 if (hc->uuid) { in list_devices()
633 strcpy(uuid_ptr, hc->uuid); in list_devices()
634 uuid_ptr = align_ptr(uuid_ptr + strlen(hc->uuid) + 1); in list_devices()
869 r = dm_hash_insert(param->name, *param->uuid ? param->uuid : NULL, md); in dev_create()
892 if (*param->uuid) { in __find_device_hash_cell()
896 hc = __get_uuid_cell(param->uuid); in __find_device_hash_cell()
918 if (hc->uuid) in __find_device_hash_cell()
919 strlcpy(param->uuid, hc->uuid, sizeof(param->uuid)); in __find_device_hash_cell()
921 param->uuid[0] = '\0'; in __find_device_hash_cell()
1922 } else if (*param->uuid && *param->name) { in validate_params()
1929 param->uuid[DM_UUID_LEN - 1] = '\0'; in validate_params()
2110 int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid) in dm_copy_name_and_uuid() argument
2127 if (uuid) in dm_copy_name_and_uuid()
2128 strcpy(uuid, hc->uuid ? : ""); in dm_copy_name_and_uuid()
2179 r = dm_hash_insert(dmi->name, *dmi->uuid ? dmi->uuid : NULL, md); in dm_early_create()