disk_type
struct disk_type *disk_type;
disk_type = disk_info->disk_type;
disk_type->dtype_asciilabel);
col = add_entry(col, fd, " : ncyl = %d", disk_type->dtype_ncyl);
col = add_entry(col, fd, " : acyl = %d", disk_type->dtype_acyl);
col = add_entry(col, fd, " : pcyl = %d", disk_type->dtype_pcyl);
col = add_entry(col, fd, " : nhead = %d", disk_type->dtype_nhead);
if (disk_type->dtype_options & SUP_PHEAD) {
disk_type->dtype_phead);
col = add_entry(col, fd, " : nsect = %d", disk_type->dtype_nsect);
if (disk_type->dtype_options & SUP_PSECT) {
disk_type->dtype_psect);
if (disk_type->dtype_options & SUP_BPT) {
col = add_entry(col, fd, " : bpt = %d", disk_type->dtype_bpt);
col = add_entry(col, fd, " : rpm = %d", disk_type->dtype_rpm);
if (disk_type->dtype_options & SUP_FMTTIME) {
disk_type->dtype_fmt_time);
if (disk_type->dtype_options & SUP_CYLSKEW) {
disk_type->dtype_cyl_skew);
if (disk_type->dtype_options & SUP_TRKSKEW) {
disk_type->dtype_trk_skew);
if (disk_type->dtype_options & SUP_TRKS_ZONE) {
disk_type->dtype_trks_zone);
if (disk_type->dtype_options & SUP_ATRKS) {
disk_type->dtype_atrks);
if (disk_type->dtype_options & SUP_ASECT) {
disk_type->dtype_asect);
if (disk_type->dtype_options & SUP_CACHE) {
disk_type->dtype_cache);
if (disk_type->dtype_options & SUP_PREFETCH) {
disk_type->dtype_threshold);
if (disk_type->dtype_options & SUP_CACHE_MIN) {
disk_type->dtype_prefetch_min);
if (disk_type->dtype_options & SUP_CACHE_MAX) {
disk_type->dtype_prefetch_max);
if (disk_type->dtype_options & SUP_BPS) {
disk_type->dtype_bps);
if (disk_type->dtype_options & SUP_DRTYPE) {
disk_type->dtype_dr_type);
struct disk_type *disk_type;
disk_type = disk_info->disk_type;
disk_type->dtype_asciilabel,
struct disk_type *disk_type,
pcyl = disk_type->dtype_pcyl;
acyl = disk_type->dtype_acyl;
ncyl = disk_type->dtype_ncyl;
nhead = disk_type->dtype_nhead;
nsect = disk_type->dtype_nsect;
rpm = disk_type->dtype_rpm;
disk_type->dtype_asciilabel,
static struct disk_type *
struct disk_type *dp;
static struct disk_type *
struct disk_type *dp;
static struct disk_type *generic_disk_sense(
static struct disk_type *
struct disk_type *dp;
struct disk_type *disk;
disk = (struct disk_type *)zalloc(sizeof (struct disk_type));
struct disk_type *disk_type,
static struct disk_type *find_scsi_disk_type(
static struct disk_type *find_scsi_disk_by_name(
delete_disk_type(struct disk_type *disk_type)
struct disk_type *dp, *disk;
if (disk == disk_type) {
if (dp == disk_type) {
static struct disk_type *new_scsi_disk_type(
static struct disk_type *new_direct_disk_type(int fd, char *disk_name,
struct disk_type *
struct disk_type *disk, *dp;
disk = (struct disk_type *)zalloc(sizeof (struct disk_type));
static struct disk_type *
struct disk_type *dp;
struct disk_type *disk;
disk = (struct disk_type *)zalloc(sizeof (struct disk_type));
struct disk_type *
struct disk_type *disk_type;
disk_type = new_direct_disk_type(fd, "DEFAULT", label);
return (disk_type);
struct disk_type *
struct disk_type *disk_type;
if ((disk_type = find_scsi_disk_by_name(disk_name)) != NULL) {
&inquiry, disk_type, &capacity)) {
return (disk_type);
static struct disk_type *
struct disk_type *disk;
struct disk_type *auto_sense(
struct disk_type *auto_efi_sense(
struct disk_type *disk_type);
struct disk_type *auto_direct_get_geom_label(int fd, struct dk_label *label);
struct disk_type *auto_sense();
struct disk_type *auto_efi_sense();
struct disk_type *auto_direct_get_geom_label();
extern struct disk_type *cur_dtype; /* current dtype */
struct disk_type *dtype_next; /* ptr to next drive type */
struct disk_type *ctype_dlist; /* list of disk types */
struct disk_type *disk_type; /* ptr to physical info */
struct disk_type *type = disk->disk_type;
struct disk_type *type, *oldtype;
oldtype = disk->disk_type;
disk->disk_type = type;
if (disk == NULL || disk->disk_type == NULL) {
for (parts = disk->disk_type->dtype_plist; parts != NULL;
cur_dtype = cur_disk->disk_type;
struct disk_type *cur_dtype;
struct disk_type *dptr;
if (delete_disk_type(cur_disk->disk_type) == 0) {
cur_disk->disk_type = dptr;
cur_disk->disk_type = dptr;
struct disk_type *dtype;
struct disk_type *type, *tptr, *oldtype;
struct disk_type disk_type;
struct disk_type *d = &disk_type;
oldtype = cur_disk->disk_type;
if (delete_disk_type(cur_disk->disk_type) != 0) {
cur_disk->disk_type = tptr;
bzero((char *)d, sizeof (struct disk_type));
tptr = (struct disk_type *)zalloc(sizeof (struct disk_type));
bcopy((char *)d, (char *)tptr, sizeof (disk_type));
cur_disk->disk_type = tptr;
build_partition(struct disk_type *tptr)
new_partitiontable(struct disk_type *tptr, struct disk_type *oldtptr)
void new_partitiontable(struct disk_type *tptr, struct disk_type *oldtype);
static void check_dtypes_for_inconsistency(struct disk_type *dp1,
struct disk_type *dp2);
static struct chg_list *new_chg_list(struct disk_type *);
struct disk_type *type;
type = disk->disk_type;
struct disk_type *search_dtype, *efi_disk;
struct disk_type *type;
search_dtype = (struct disk_type *)
zalloc(sizeof (struct disk_type));
search_disk->disk_type = search_dtype;
search_dtype = (struct disk_type *)
zalloc(sizeof (struct disk_type));
search_disk->disk_type = search_dtype;
dtype_match(struct dk_label *label, struct disk_type *dtype)
struct disk_type *dp1;
struct disk_type *dp2;
struct disk_type *dp;
check_dtypes_for_inconsistency(struct disk_type *dp1, struct disk_type *dp2)
new_chg_list(struct disk_type *disk)
struct disk_type *dtype, *type;
dtype = (struct disk_type *)zalloc(sizeof (struct disk_type));
sup_change_spec(struct disk_type *disk, char *id)
static int sup_change_spec(struct disk_type *, char *);
struct disk_type *dtype = NULL;
int dtype_match(struct dk_label *label, struct disk_type *dtype);