Lines Matching refs:newpart
191 struct disk_part *newpart; in allocate_disk_part() local
192 newpart = calloc(1, sizeof(struct disk_part)); in allocate_disk_part()
193 if (!newpart) in allocate_disk_part()
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()
212 newpart->partnum = partnum; in allocate_disk_part()
214 return newpart; in allocate_disk_part()