Lines Matching refs:gpt_part_info
204 newpart->gpt_part_info.start = info->start; in allocate_disk_part()
205 newpart->gpt_part_info.size = info->size; in allocate_disk_part()
206 newpart->gpt_part_info.blksz = info->blksz; in allocate_disk_part()
207 strncpy((char *)newpart->gpt_part_info.name, (const char *)info->name, in allocate_disk_part()
209 newpart->gpt_part_info.name[PART_NAME_LEN - 1] = '\0'; in allocate_disk_part()
210 strncpy((char *)newpart->gpt_part_info.type, (const char *)info->type, in allocate_disk_part()
212 newpart->gpt_part_info.type[PART_TYPE_LEN - 1] = '\0'; in allocate_disk_part()
213 newpart->gpt_part_info.bootable = info->bootable; in allocate_disk_part()
215 strncpy(newpart->gpt_part_info.uuid, (const char *)info->uuid, in allocate_disk_part()
218 newpart->gpt_part_info.uuid[UUID_STR_LEN] = '\0'; in allocate_disk_part()
244 prettyprint_part_size(partstartstr, curr->gpt_part_info.start, in print_gpt_info()
245 curr->gpt_part_info.blksz); in print_gpt_info()
246 prettyprint_part_size(partsizestr, curr->gpt_part_info.size, in print_gpt_info()
247 curr->gpt_part_info.blksz); in print_gpt_info()
251 printf("Block size %lu, name %s\n", curr->gpt_part_info.blksz, in print_gpt_info()
252 curr->gpt_part_info.name); in print_gpt_info()
253 printf("Type %s, bootable %d\n", curr->gpt_part_info.type, in print_gpt_info()
254 curr->gpt_part_info.bootable & PART_BOOTABLE); in print_gpt_info()
256 printf("UUID %s\n", curr->gpt_part_info.uuid); in print_gpt_info()
290 strncat(partitions_list, (const char *)curr->gpt_part_info.name, in create_gpt_partitions_list()
293 (unsigned long long)curr->gpt_part_info.start * in create_gpt_partitions_list()
294 curr->gpt_part_info.blksz); in create_gpt_partitions_list()
298 (unsigned long long)curr->gpt_part_info.size * in create_gpt_partitions_list()
299 curr->gpt_part_info.blksz); in create_gpt_partitions_list()
303 strncat(partitions_list, curr->gpt_part_info.uuid, in create_gpt_partitions_list()
849 if (!strcmp((char *)curr->gpt_part_info.name, name1)) { in do_rename_gpt_parts()
850 strcpy((char *)curr->gpt_part_info.name, name2); in do_rename_gpt_parts()
852 } else if (!strcmp((char *)curr->gpt_part_info.name, name2)) { in do_rename_gpt_parts()
853 strcpy((char *)curr->gpt_part_info.name, name1); in do_rename_gpt_parts()
882 strcpy((char *)curr->gpt_part_info.name, name2); in do_rename_gpt_parts()