Home | History | Annotate | Download | only in chain

Lines Matching refs:gpt

122 /* pi_gpt_ctor() - GPT iterator specific initialization */
142 iter->gpt.pe_count = (int)gpth->part_count;
143 iter->gpt.pe_size = (int)gpth->part_size;
144 iter->gpt.ufirst = gpth->lba_first_usable;
145 iter->gpt.ulast = gpth->lba_last_usable;
147 memcpy(&iter->gpt.disk_guid, &gpth->disk_guid, sizeof gpth->disk_guid);
148 memcpy(&iter->gpt.part_guid, &gpth->disk_guid, sizeof gpth->disk_guid);
266 (iter->data + iter->index0 * iter->gpt.pe_size);
274 if (gp->lba_first < iter->gpt.ufirst ||
275 gp->lba_last > iter->gpt.ulast) {
276 error("LBA sectors of GPT partition are beyond the range allowed in GPT header.");
400 (iter->data + iter->index0 * iter->gpt.pe_size);
405 iter->gpt.part_label[i] = (char)orig_lab[i];
407 iter->gpt.part_label[PI_GPTLABSIZE/2] = 0;
479 while (++iter->index0 < iter->gpt.pe_count) {
481 (iter->data + iter->index0 * iter->gpt.pe_size);
492 if (iter->index0 == iter->gpt.pe_count) {
501 memcpy(&iter->gpt.part_guid, &gpt_part->uid, sizeof(struct guid));
548 sprintf(errbuf, "Unable to read %s GPT header.", desc);
553 sprintf(errbuf, "Invalid checksum of %s GPT header.", desc);
567 uint64_t gpt_lsiz; /* size of GPT partition list in bytes */
568 uint64_t gpt_lcnt; /* size of GPT partition in sectors */
569 uint64_t gpt_loff; /* offset to GPT partition list in sectors */
586 sprintf(errbuf, "Unable to read %s GPT partition list.", desc);
591 sprintf(errbuf, "Invalid checksum of %s GPT partition list.", desc);
601 uint64_t gpt_loff; /* offset to GPT partition list in sectors */
602 uint64_t gpt_lsiz; /* size of GPT partition list in bytes */
603 uint64_t gpt_lcnt; /* size of GPT partition in sectors */
604 uint64_t gpt_sec; /* secondary gpt header */
660 /* Check for GPT protective MBR */
665 /* Try to read GPT header */
680 /* looks like GPT v1.0 */
682 dprintf("Looks like a GPT v1.0 disk.\n");
686 error("GPT header values are corrupted.");
696 /* looks like GPT */