Lines Matching refs:partitions_list

267 				      char *partitions_list)  in create_gpt_partitions_list()  argument
273 if (!partitions_list) in create_gpt_partitions_list()
276 strcpy(partitions_list, "uuid_disk="); in create_gpt_partitions_list()
277 strncat(partitions_list, guid, UUID_STR_LEN + 1); in create_gpt_partitions_list()
278 strcat(partitions_list, ";"); in create_gpt_partitions_list()
282 strcat(partitions_list, "name="); in create_gpt_partitions_list()
283 strncat(partitions_list, (const char *)curr->gpt_part_info.name, in create_gpt_partitions_list()
285 strcat(partitions_list, ",start="); in create_gpt_partitions_list()
289 strncat(partitions_list, partstr, PART_NAME_LEN + 1); in create_gpt_partitions_list()
290 strcat(partitions_list, ",size="); in create_gpt_partitions_list()
293 strncat(partitions_list, partstr, PART_NAME_LEN + 1); in create_gpt_partitions_list()
295 strcat(partitions_list, ",uuid="); in create_gpt_partitions_list()
296 strncat(partitions_list, curr->gpt_part_info.uuid, in create_gpt_partitions_list()
298 strcat(partitions_list, ";"); in create_gpt_partitions_list()
658 char *partitions_list, *str_disk_guid; in do_rename_gpt_parts() local
678 partitions_list = malloc(partlistlen); in do_rename_gpt_parts()
679 if (!partitions_list) { in do_rename_gpt_parts()
683 memset(partitions_list, '\0', partlistlen); in do_rename_gpt_parts()
685 ret = create_gpt_partitions_list(numparts, disk_guid, partitions_list); in do_rename_gpt_parts()
687 free(partitions_list); in do_rename_gpt_parts()
694 debug("OLD partitions_list is %s with %u chars\n", partitions_list, in do_rename_gpt_parts()
695 (unsigned)strlen(partitions_list)); in do_rename_gpt_parts()
698 ret = set_gpt_info(dev_desc, partitions_list, &str_disk_guid, in do_rename_gpt_parts()
702 free(partitions_list); in do_rename_gpt_parts()
757 ret = create_gpt_partitions_list(numparts, disk_guid, partitions_list); in do_rename_gpt_parts()
760 debug("NEW partitions_list is %s with %u chars\n", partitions_list, in do_rename_gpt_parts()
761 (unsigned)strlen(partitions_list)); in do_rename_gpt_parts()
763 ret = set_gpt_info(dev_desc, partitions_list, &str_disk_guid, in do_rename_gpt_parts()
771 free(partitions_list); in do_rename_gpt_parts()
802 free(partitions_list); in do_rename_gpt_parts()