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

/illumos-gate/usr/src/cmd/format/
H A Dmain.c297 if (cur_disk == NULL) {
342 if (cur_disk != NULL)
363 cur_disk = disk;
364 cur_dtype = cur_disk->disk_type;
365 cur_label = cur_disk->label_type;
366 cur_ctlr = cur_disk->disk_ctlr;
367 cur_parts = cur_disk->disk_parts;
368 cur_blksz = cur_disk->disk_lbasize;
375 if ((cur_file = open_disk(cur_disk->disk_path,
378 "Error: can't open selected disk '%s'.\n", cur_disk
[all...]
H A Dmenu_command.c228 if (cur_disk == disk) {
309 (void) copy_solaris_part(&cur_disk->fdisk_part);
311 if ((cur_disk->label_type == L_TYPE_EFI) &&
312 (cur_disk->disk_parts->etoc->efi_flags &
324 if (cur_disk->fdisk_part.numsect == 0) {
334 if (cur_disk->disk_flags & DSK_LABEL_DIRTY) {
339 cur_disk->disk_flags &= ~DSK_LABEL_DIRTY;
374 if (cur_disk == NULL) {
378 oldtype = cur_disk->disk_type;
401 if (cur_disk
[all...]
H A Dmenu.c242 * current disk (cur_disk, cur_type, cur_ctype) may not be defined.
286 if ((cur_disk == NULL) && option_f)
288 if (cur_disk->label_type == L_TYPE_EFI)
296 if ((cur_disk == NULL) && option_f)
298 if ((cur_disk->label_type == L_TYPE_EFI) && expert_mode)
300 if (cur_disk->label_type != L_TYPE_EFI)
308 if ((cur_disk == NULL) && option_f)
310 if (cur_disk->label_type != L_TYPE_EFI)
320 if ((cur_disk == NULL) && option_f)
322 if ((cur_disk
[all...]
H A Dmenu_fdisk.c228 if (emcpower_name(cur_disk->disk_name)) {
229 get_emcpower_pname(name, cur_disk->disk_name);
237 (void) strcpy(np, cur_disk->disk_name);
238 if (strncmp(rdevp, cur_disk->disk_name, strlen(rdevp)) == 0 ||
239 strncmp(devp, cur_disk->disk_name, strlen(devp)) == 0) {
274 if (cur_disk == NULL) {
277 (void) strcpy(np, cur_disk->disk_name);
310 * with "p0" path or cur_disk->disk_path
324 if (cur_disk->fdisk_part.systid == SUNIXOS ||
325 cur_disk
[all...]
H A Dmenu_analyze.c273 (cur_disk->label_type == L_TYPE_SOLARIS)) {
275 } else if (cur_disk->label_type == L_TYPE_SOLARIS) {
277 } else if (cur_disk->label_type == L_TYPE_EFI) {
321 if ((scan_entire) && (cur_disk->label_type == L_TYPE_SOLARIS)) {
323 } else if ((scan_entire) && (cur_disk->label_type == L_TYPE_EFI)) {
H A Dadd_definition.c93 if (cur_disk == NULL) {
170 add_disktype(fd, cur_disk);
173 add_partition(fd, cur_disk, cur_parts);
H A Dcheckdev.c186 if (cur_disk->disk_dkinfo.dki_ctype != dkinfo.dki_ctype ||
187 cur_disk->disk_dkinfo.dki_cnum != dkinfo.dki_cnum ||
188 cur_disk->disk_dkinfo.dki_unit != dkinfo.dki_unit ||
189 strcmp(cur_disk->disk_dkinfo.dki_dname,
H A Dmenu_partition.c242 cur_disk->disk_parts = cur_parts = pptr;
314 cur_disk->disk_parts = cur_parts = pptr;
396 if (chk_volname(cur_disk)) {
398 print_volname(cur_disk);
H A Dpartition.c386 cur_disk->disk_parts = cur_parts = pptr;
397 cur_disk->disk_parts = cur_parts = cur_dtype->dtype_plist;
447 cur_disk->disk_parts = cur_parts = pptr;
466 cur_disk->disk_parts = cur_parts = pptr;
H A Danalyze.c186 (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1,
204 if (cur_disk->disk_flags & DSK_LABEL)
209 if (cur_disk->disk_flags & DSK_LABEL)
H A Dglobal.h110 struct disk_info *cur_disk; /* current disk */ variable in typeref:struct:disk_info
H A Dlabel.c290 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1,
309 cur_disk->disk_flags |= DSK_LABEL;
353 bcopy(cur_disk->v_volume, label.dkl_vtoc.v_volume, LEN_DKL_VVOL);
471 cur_disk->disk_flags |= DSK_LABEL;
H A Dctlr_ata.c185 /* Restore cur_file with cur_disk->disk_path */
255 if (copy_solaris_part(&cur_disk->fdisk_part))
H A Dio.c2472 if (cur_disk != NULL) {
2480 if (cur_disk != NULL) {
2481 if ((cur_file = open_disk(cur_disk->disk_path,
2484 cur_disk->disk_name);
H A Dmenu_defect.c291 if (cur_disk->label_type == L_TYPE_SOLARIS) {
H A Dmodify_partition.c125 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1,
H A Dmenu_scsi.c568 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1,

Completed in 125 milliseconds