Home
last modified time | relevance | path

Searched refs:cur_disk (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/cmd/format/
H A Dmenu_command.c235 if (cur_disk == disk) { in c_disk()
316 (void) copy_solaris_part(&cur_disk->fdisk_part); in c_disk()
318 if ((cur_disk->label_type == L_TYPE_EFI) && in c_disk()
319 (cur_disk->disk_parts->etoc->efi_flags & in c_disk()
331 if (cur_disk->fdisk_part.numsect == 0) { in c_disk()
341 if (cur_disk->disk_flags & DSK_LABEL_DIRTY) { in c_disk()
346 cur_disk->disk_flags &= ~DSK_LABEL_DIRTY; in c_disk()
381 if (cur_disk == NULL) { in c_type()
385 oldtype = cur_disk->disk_type; in c_type()
408 if (cur_disk->label_type == L_TYPE_EFI) { in c_type()
[all …]
H A Dmain.c66 struct disk_info *cur_disk; variable
323 if (cur_disk == NULL) { in main()
367 if (cur_disk != NULL) in init_globals()
388 cur_disk = disk; in init_globals()
389 cur_dtype = cur_disk->disk_type; in init_globals()
390 cur_label = cur_disk->label_type; in init_globals()
391 cur_ctlr = cur_disk->disk_ctlr; in init_globals()
392 cur_parts = cur_disk->disk_parts; in init_globals()
393 cur_blksz = cur_disk->disk_lbasize; in init_globals()
400 if ((cur_file = open_disk(cur_disk->disk_path, in init_globals()
[all …]
H A Dmenu.c264 if ((cur_disk == NULL) && option_f) in not_efi()
266 if (cur_disk->label_type == L_TYPE_EFI) in not_efi()
274 if ((cur_disk == NULL) && option_f) in disp_expert_change_expert_efi()
276 if ((cur_disk->label_type == L_TYPE_EFI) && expert_mode) in disp_expert_change_expert_efi()
278 if (cur_disk->label_type != L_TYPE_EFI) in disp_expert_change_expert_efi()
286 if ((cur_disk == NULL) && option_f) in disp_expand_efi()
288 if (cur_disk->label_type != L_TYPE_EFI) in disp_expand_efi()
298 if ((cur_disk == NULL) && option_f) in disp_all_change_expert_efi()
300 if ((cur_disk->label_type != L_TYPE_EFI) || (!expert_mode)) in disp_all_change_expert_efi()
H A Dmenu_fdisk.c230 if (emcpower_name(cur_disk->disk_name)) { in get_sname()
231 get_emcpower_pname(name, cur_disk->disk_name); in get_sname()
239 (void) strcpy(np, cur_disk->disk_name); in get_sname()
240 if (strncmp(rdevp, cur_disk->disk_name, strlen(rdevp)) == 0 || in get_sname()
241 strncmp(devp, cur_disk->disk_name, strlen(devp)) == 0) { in get_sname()
276 if (cur_disk == NULL) { in get_pname()
279 (void) strcpy(np, cur_disk->disk_name); in get_pname()
326 if (cur_disk->fdisk_part.systid == SUNIXOS || in open_cur_file()
327 cur_disk->fdisk_part.systid == SUNIXOS2) { in open_cur_file()
331 dkpath = cur_disk->disk_path; in open_cur_file()
[all …]
H A Dmenu_analyze.c271 (cur_disk->label_type == L_TYPE_SOLARIS)) { in a_setup()
273 } else if (cur_disk->label_type == L_TYPE_SOLARIS) { in a_setup()
275 } else if (cur_disk->label_type == L_TYPE_EFI) { in a_setup()
319 if ((scan_entire) && (cur_disk->label_type == L_TYPE_SOLARIS)) { in a_setup()
321 } else if ((scan_entire) && (cur_disk->label_type == L_TYPE_EFI)) { in a_setup()
H A Dcheckdev.c171 if (cur_disk->disk_dkinfo.dki_ctype != dkinfo.dki_ctype || in getpartition()
172 cur_disk->disk_dkinfo.dki_cnum != dkinfo.dki_cnum || in getpartition()
173 cur_disk->disk_dkinfo.dki_unit != dkinfo.dki_unit || in getpartition()
174 strcmp(cur_disk->disk_dkinfo.dki_dname, dkinfo.dki_dname) != 0) { in getpartition()
H A Dmenu_partition.c231 cur_disk->disk_parts = cur_parts = pptr; in p_select()
302 cur_disk->disk_parts = cur_parts = pptr; in p_select()
384 if (chk_volname(cur_disk)) { in p_print()
386 print_volname(cur_disk); in p_print()
H A Dpartition.c387 cur_disk->disk_parts = cur_parts = pptr; in get_partition()
398 cur_disk->disk_parts = cur_parts = cur_dtype->dtype_plist; in get_partition()
449 cur_disk->disk_parts = cur_parts = pptr; in make_partition()
468 cur_disk->disk_parts = cur_parts = pptr; in make_partition()
H A Dadd_definition.c91 if (cur_disk == NULL) { in add_definition()
168 add_disktype(fd, cur_disk); in add_definition()
171 add_partition(fd, cur_disk, cur_parts); in add_definition()
H A Danalyze.c174 (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1, in do_scan()
192 if (cur_disk->disk_flags & DSK_LABEL) in do_scan()
197 if (cur_disk->disk_flags & DSK_LABEL) in do_scan()
H A Dlabel.c272 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1, in write_label()
291 cur_disk->disk_flags |= DSK_LABEL; in write_label()
335 bcopy(cur_disk->v_volume, label.dkl_vtoc.v_volume, LEN_DKL_VVOL); in write_label()
453 cur_disk->disk_flags |= DSK_LABEL; in write_label()
H A Dglobal.h110 extern struct disk_info *cur_disk; /* current disk */
H A Dio.c2426 if (cur_disk != NULL) { in execute_shell()
2434 if (cur_disk != NULL) { in execute_shell()
2435 if ((cur_file = open_disk(cur_disk->disk_path, in execute_shell()
2438 cur_disk->disk_name); in execute_shell()
H A Dctlr_ata.c242 if (copy_solaris_part(&cur_disk->fdisk_part)) in get_alts_slice()
H A Dmenu_defect.c282 if (cur_disk->label_type == L_TYPE_SOLARIS) { in d_add()
H A Dmodify_partition.c110 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1, in p_modify()
H A Dmenu_scsi.c537 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1, in do_format()