Home
last modified time | relevance | path

Searched refs:efi_label (Results 1 – 2 of 2) sorted by relevance

/titanic_50/usr/src/lib/libefi/common/
H A Drdwr_efi.c752 struct dk_gpt *efi_label; in efi_use_whole_disk() local
759 rval = efi_alloc_and_read(fd, &efi_label); in efi_use_whole_disk()
765 for (i = 0; i < efi_label->efi_nparts - 2; i ++) { in efi_use_whole_disk()
766 if (pl_start < efi_label->efi_parts[i].p_start) { in efi_use_whole_disk()
767 pl_start = efi_label->efi_parts[i].p_start; in efi_use_whole_disk()
771 pl_size = efi_label->efi_parts[phy_last_slice].p_size; in efi_use_whole_disk()
778 if ((efi_label->efi_altern_lba == 1) || (efi_label->efi_altern_lba in efi_use_whole_disk()
779 >= efi_label->efi_last_lba)) { in efi_use_whole_disk()
784 efi_free(efi_label); in efi_use_whole_disk()
794 if (pl_start + pl_size - 1 == efi_label->efi_last_u_lba - in efi_use_whole_disk()
[all …]
/titanic_50/usr/src/cmd/format/
H A Dmenu_partition.c169 struct dk_gpt *efi_label = cur_parts->etoc; in p_expand() local
178 delta = efi_label->efi_last_lba - efi_label->efi_altern_lba; in p_expand()
179 nparts = efi_label->efi_nparts; in p_expand()
182 efi_label->efi_parts[nparts - 1].p_start += delta; in p_expand()
183 efi_label->efi_last_u_lba += delta; in p_expand()
184 efi_label->efi_altern_lba = cur_parts->etoc->efi_last_lba; in p_expand()