Home
last modified time | relevance | path

Searched refs:cur_parts (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/cmd/format/
H A Dpartition.c133 if (cur_parts == NULL) { in change_partition()
139 if (num > cur_parts->etoc->efi_nparts - 1) { in change_partition()
143 print_efi_partition(cur_parts->etoc, num, 1); in change_partition()
148 deflt = cur_parts->etoc->efi_parts[num].p_tag; in change_partition()
156 deflt = cur_parts->etoc->efi_parts[num].p_flag; in change_partition()
161 ioparam.io_bounds.lower = cur_parts->etoc->efi_first_u_lba; in change_partition()
162 ioparam.io_bounds.upper = cur_parts->etoc->efi_last_u_lba; in change_partition()
164 efi_deflt.start_sector = maxofN(cur_parts->etoc); in change_partition()
165 if ((cur_parts->etoc->efi_parts[num].p_start != 0) && in change_partition()
166 (cur_parts->etoc->efi_parts[num].p_size != 0)) { in change_partition()
[all …]
H A Dmenu_partition.c158 struct dk_gpt *efi_label = cur_parts->etoc; in p_expand()
160 if (cur_parts->etoc->efi_altern_lba == 1 || in p_expand()
161 (cur_parts->etoc->efi_altern_lba >= in p_expand()
162 cur_parts->etoc->efi_last_lba)) { in p_expand()
173 efi_label->efi_altern_lba = cur_parts->etoc->efi_last_lba; in p_expand()
211 if (cur_parts == pptr) { in p_select()
231 cur_disk->disk_parts = cur_parts = pptr; in p_select()
296 if (cur_parts != NULL && cur_parts != pptr && in p_select()
297 cur_parts->pinfo_name == NULL) in p_select()
298 delete_partition(cur_parts); in p_select()
[all …]
H A Dmodify_partition.c80 if (cur_parts == NULL) { in p_modify()
120 if (cur_parts->pinfo_name != NULL) { in p_modify()
123 cur_parts->pinfo_name); in p_modify()
146 if (check_map(cur_parts->pinfo_map)) { in p_modify()
154 tmp_pinfo->vtoc = cur_parts->vtoc; in p_modify()
157 cur_parts->pinfo_map[i].dkl_nblk; in p_modify()
159 cur_parts->pinfo_map[i].dkl_cylno; in p_modify()
189 for (i = 0; i < cur_parts->etoc->efi_nparts; i++) { in p_modify()
190 cur_parts->etoc->efi_parts[i].p_start = 0; in p_modify()
191 cur_parts->etoc->efi_parts[i].p_size = 0; in p_modify()
[all …]
H A Dmenu_fdisk.c435 if (cur_parts->vtoc.v_part[i].p_tag && in update_cur_parts()
436 cur_parts->vtoc.v_part[i].p_tag != V_ALTSCTR) { in update_cur_parts()
437 cur_parts->vtoc.v_part[i].p_start = 0; in update_cur_parts()
438 cur_parts->vtoc.v_part[i].p_size = 0; in update_cur_parts()
441 cur_parts->pinfo_map[i].dkl_nblk = 0; in update_cur_parts()
442 cur_parts->pinfo_map[i].dkl_cylno = 0; in update_cur_parts()
443 cur_parts->vtoc.v_part[i].p_tag = in update_cur_parts()
445 cur_parts->vtoc.v_part[i].p_flag = in update_cur_parts()
451 cur_parts->pinfo_map[C_PARTITION].dkl_nblk = ncyl * spc(); in update_cur_parts()
457 cur_parts->pinfo_map[I_PARTITION].dkl_nblk = spc(); in update_cur_parts()
[all …]
H A Dmenu_command.c475 for (nparts = 0; nparts < cur_parts->etoc->efi_nparts; in c_type()
477 if (cur_parts->etoc->efi_parts[nparts].p_tag == in c_type()
480 cur_parts->etoc->efi_parts in c_type()
497 cur_parts->etoc->efi_nparts; nparts++) { in c_type()
498 if (cur_parts->etoc->efi_parts[nparts].p_tag == in c_type()
501 cur_parts->etoc->efi_parts[nparts].p_name, in c_type()
575 uint64_t start_lba = cur_parts->etoc->efi_first_u_lba; in c_type()
578 reserved = efi_reserved_sectors(cur_parts->etoc); in c_type()
580 cur_parts->etoc->efi_last_lba = maxLBA; in c_type()
581 cur_parts->etoc->efi_last_u_lba = maxLBA - start_lba; in c_type()
[all …]
H A Dadd_definition.c99 if (cur_parts == NULL) { in add_definition()
108 cur_parts->pinfo_filename != NULL) { in add_definition()
117 if (cur_parts->pinfo_name == NULL) { in add_definition()
118 assert(cur_parts->pinfo_filename == NULL); in add_definition()
126 cur_parts->pinfo_filename == NULL) { in add_definition()
131 assert(cur_parts->pinfo_filename == NULL); in add_definition()
155 (cur_parts->pinfo_filename == NULL)) { in add_definition()
170 if (cur_parts->pinfo_filename == NULL) { in add_definition()
171 add_partition(fd, cur_disk, cur_parts); in add_definition()
H A Dcheckdev.c204 if (cur_parts == NULL) in checkswap()
223 map = &cur_parts->pinfo_map[part]; in checkswap()
559 if (cur_parts == NULL) in checkmount()
596 map = &cur_parts->pinfo_map[part]; in checkmount()
639 if (cur_parts == NULL) in check_label_with_swap()
680 if (cur_parts == NULL) in check_label_with_mount()
750 if (o_efi.p_start == cur_parts->etoc-> in checkpartitions()
752 <= cur_parts->etoc->efi_parts[i].p_size) { in checkpartitions()
777 n = &cur_parts->pinfo_map[i]; in checkpartitions()
H A Dmain.c71 struct partition_info *cur_parts; variable
392 cur_parts = cur_disk->disk_parts; in init_globals()
462 scan_upper = cur_parts->etoc->efi_last_lba; in init_globals()
593 if ((cur_parts->etoc->efi_altern_lba != 1) && in init_globals()
594 (cur_parts->etoc->efi_altern_lba < in init_globals()
595 cur_parts->etoc->efi_last_lba)) { in init_globals()
H A Dctlr_ata.c225 if (cur_parts == NULL) { in get_alts_slice()
231 if (cur_parts->vtoc.v_part[i].p_tag == V_ALTSCTR) { in get_alts_slice()
233 dpart = &cur_parts->vtoc.v_part[i]; in get_alts_slice()
H A Dmenu_analyze.c276 ioparam.io_bounds.upper = cur_parts->etoc->efi_last_lba; in a_setup()
322 size = cur_parts->etoc->efi_last_lba; in a_setup()
H A Dio.c1490 cur_parts->etoc->efi_last_u_lba); in input()
1492 (cur_parts->etoc->efi_last_u_lba * cur_blksz) / in input()
1495 (cur_parts->etoc->efi_last_u_lba * cur_blksz) / in input()
1498 (cur_parts->etoc->efi_last_u_lba * cur_blksz) / in input()
1531 reserved = efi_reserved_sectors(cur_parts->etoc); in input()
1595 if (blokno > cur_parts->etoc->efi_last_u_lba) { in input()
1598 blokno, cur_parts->etoc->efi_last_u_lba); in input()
H A Dglobal.h115 extern struct partition_info *cur_parts; /* current disk's partitioning */
H A Dmenu.c290 if (cur_parts == NULL) in disp_expand_efi()
H A Dlabel.c284 vtoc64 = cur_parts->etoc; in write_label()
321 label.dkl_map[i] = cur_parts->pinfo_map[i]; in write_label()
330 label.dkl_vtoc = cur_parts->vtoc; in write_label()
H A Danalyze.c142 end = cur_parts->etoc->efi_last_lba; in do_scan()
H A Dmenu_defect.c285 ioparam.io_bounds.upper = cur_parts->etoc->efi_last_lba; in d_add()