Lines Matching refs:gpt_part_info
196 newpart->gpt_part_info.start = info->start; in allocate_disk_part()
197 newpart->gpt_part_info.size = info->size; in allocate_disk_part()
198 newpart->gpt_part_info.blksz = info->blksz; in allocate_disk_part()
199 strncpy((char *)newpart->gpt_part_info.name, (const char *)info->name, in allocate_disk_part()
201 newpart->gpt_part_info.name[PART_NAME_LEN - 1] = '\0'; in allocate_disk_part()
202 strncpy((char *)newpart->gpt_part_info.type, (const char *)info->type, in allocate_disk_part()
204 newpart->gpt_part_info.type[PART_TYPE_LEN - 1] = '\0'; in allocate_disk_part()
205 newpart->gpt_part_info.bootable = info->bootable; in allocate_disk_part()
207 strncpy(newpart->gpt_part_info.uuid, (const char *)info->uuid, in allocate_disk_part()
210 newpart->gpt_part_info.uuid[UUID_STR_LEN] = '\0'; in allocate_disk_part()
236 prettyprint_part_size(partstartstr, curr->gpt_part_info.start, in print_gpt_info()
237 curr->gpt_part_info.blksz); in print_gpt_info()
238 prettyprint_part_size(partsizestr, curr->gpt_part_info.size, in print_gpt_info()
239 curr->gpt_part_info.blksz); in print_gpt_info()
243 printf("Block size %lu, name %s\n", curr->gpt_part_info.blksz, in print_gpt_info()
244 curr->gpt_part_info.name); in print_gpt_info()
245 printf("Type %s, bootable %d\n", curr->gpt_part_info.type, in print_gpt_info()
246 curr->gpt_part_info.bootable); in print_gpt_info()
248 printf("UUID %s\n", curr->gpt_part_info.uuid); in print_gpt_info()
282 strncat(partitions_list, (const char *)curr->gpt_part_info.name, in create_gpt_partitions_list()
285 (unsigned long long)curr->gpt_part_info.start * in create_gpt_partitions_list()
286 curr->gpt_part_info.blksz); in create_gpt_partitions_list()
290 (unsigned long long)curr->gpt_part_info.size * in create_gpt_partitions_list()
291 curr->gpt_part_info.blksz); in create_gpt_partitions_list()
295 strncat(partitions_list, curr->gpt_part_info.uuid, in create_gpt_partitions_list()
716 if (!strcmp((char *)curr->gpt_part_info.name, name1)) { in do_rename_gpt_parts()
717 strcpy((char *)curr->gpt_part_info.name, name2); in do_rename_gpt_parts()
719 } else if (!strcmp((char *)curr->gpt_part_info.name, name2)) { in do_rename_gpt_parts()
720 strcpy((char *)curr->gpt_part_info.name, name1); in do_rename_gpt_parts()
749 strcpy((char *)curr->gpt_part_info.name, name2); in do_rename_gpt_parts()