Lines Matching refs:cur_disk

235 		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()
435 (void) strcpy(x86_devname, cur_disk->disk_name); in c_type()
436 switch (cur_disk->label_type) { in c_type()
443 cur_disk->disk_name); in c_type()
464 cur_disk->disk_name); in c_type()
487 if (delete_disk_type(cur_disk->disk_type) != 0) { in c_type()
491 cur_disk->disk_type = tptr; in c_type()
492 cur_disk->disk_parts = tptr->dtype_plist; in c_type()
493 init_globals(cur_disk); in c_type()
503 (void) strlcpy(cur_disk->v_volume, volname, in c_type()
594 cur_disk->disk_flags &= ~DSK_LABEL_DIRTY; in c_type()
646 checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1, in c_type()
661 cur_disk->disk_type = tptr; in c_type()
662 cur_disk->disk_parts = NULL; in c_type()
663 cur_disk->disk_flags &= ~DSK_LABEL; in c_type()
668 init_globals(cur_disk); in c_type()
676 if (cur_disk->disk_flags & DSK_LABEL_DIRTY) { in c_type()
681 cur_disk->disk_flags &= ~DSK_LABEL_DIRTY; in c_type()
745 if (cur_disk == NULL) { in c_current()
752 fmt_print("Current Disk = %s", cur_disk->disk_name); in c_current()
753 if (chk_volname(cur_disk)) { in c_current()
755 print_volname(cur_disk); in c_current()
758 if (cur_disk->devfs_name != NULL) { in c_current()
771 fmt_print("%s\n", cur_disk->devfs_name); in c_current()
774 cur_disk->disk_dkinfo.dki_unit); in c_current()
920 if (checkdevinuse(cur_disk->disk_name, start, end, 0, 0)) { in c_format()
926 if (cur_disk->disk_lbasize != DEV_BSIZE) { in c_format()
929 cur_disk->disk_lbasize); in c_format()
1125 if (cur_disk->label_type == L_TYPE_SOLARIS) { in c_format()
1127 if (cur_disk->disk_flags & DSK_LABEL) in c_format()
1130 } else if (cur_disk->label_type == L_TYPE_EFI) { in c_format()
1132 if (cur_disk->disk_flags & DSK_LABEL) in c_format()
1270 if (cur_disk->label_type == L_TYPE_SOLARIS) { in c_repair()
1296 if (checkdevinuse(cur_disk->disk_name, bn, bn, 0, 0)) { in c_repair()
1302 buf = zalloc((cur_disk->disk_lbasize == 0) ? in c_repair()
1303 SECSIZE : cur_disk->disk_lbasize); in c_repair()
1380 bzero(buf, cur_disk->disk_lbasize); in c_repair()
1456 if (cur_disk->label_type == L_TYPE_SOLARIS) { in c_show()
1536 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1, in c_label()
1552 cur_disk->disk_parts = cur_parts = cur_dtype->dtype_plist; in c_label()
1580 (cur_disk->fdisk_part.systid != EFI_PMBR)) in c_label()
1589 (cur_disk->fdisk_part.systid != EFI_PMBR)) { in c_label()
1605 if (cur_disk->fdisk_part.systid == EFI_PMBR) { in c_label()
1621 if (!(((cur_disk->fdisk_part.systid != SUNIXOS) || in c_label()
1622 (cur_disk->fdisk_part.systid != SUNIXOS2)) && in c_label()
1623 (cur_disk->fdisk_part.numsect > 0))) { in c_label()
1632 (void) strcpy(x86_devname, cur_disk->disk_name); in c_label()
1649 if (delete_disk_type(cur_disk->disk_type) == 0) { in c_label()
1651 cur_disk->label_type = L_TYPE_SOLARIS; in c_label()
1652 cur_disk->disk_type = dptr; in c_label()
1653 cur_disk->disk_parts = dptr->dtype_plist; in c_label()
1660 cur_disk->disk_flags &= ~DSK_LABEL_DIRTY; in c_label()
1674 if ((cur_disk->fdisk_part.systid == SUNIXOS) || in c_label()
1675 (cur_disk->fdisk_part.systid == SUNIXOS2)) { in c_label()
1684 if (get_disk_info(cur_file, &efinfo, cur_disk) != 0) { in c_label()
1714 cur_disk->disk_flags &= ~DSK_LABEL_DIRTY; in c_label()
1727 cur_disk->label_type = L_TYPE_EFI; in c_label()
1728 cur_disk->disk_type = dptr; in c_label()
1729 cur_disk->disk_parts = dptr->dtype_plist; in c_label()
1739 (void) copy_solaris_part(&cur_disk->fdisk_part); in c_label()
1899 if (cur_disk->label_type == L_TYPE_EFI) { in c_backup()
1900 if (((cur_disk->disk_parts->etoc->efi_flags & in c_backup()
1910 } else if (((cur_disk->disk_flags & (DSK_LABEL | DSK_LABEL_DIRTY)) == in c_backup()
2029 cur_disk->disk_parts = cur_parts = parts; in c_backup()
2071 status = read_efi_label(cur_file, &efi_info, cur_disk); in c_verify_efi()
2460 if (checkdevinuse(cur_disk->disk_name, (diskaddr_t)-1, in c_volname()
2472 bcopy(cur_disk->v_volume, x.defvolname, LEN_DKL_VVOL); in c_volname()
2516 bzero(cur_disk->v_volume, LEN_DKL_VVOL); in c_volname()
2517 bcopy(volname, cur_disk->v_volume, min((int)strlen(volname), in c_volname()