Give lp->d_type a value other than 'unknown'. When the model is "ST506",
the d_type field becomes DTYPE_ST506, otherwise it will be set to DTYPE_ESDI.
This commit is contained in:
parent
90a8355d04
commit
0c76b12125
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wd.c,v 1.197 1999/10/20 15:22:25 enami Exp $ */
|
||||
/* $NetBSD: wd.c,v 1.198 1999/11/10 14:11:34 leo Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Manuel Bouyer. All rights reserved.
|
||||
|
@ -838,16 +838,11 @@ wdgetdefaultlabel(wd, lp)
|
|||
lp->d_ncylinders = wd->sc_params.atap_cylinders;
|
||||
lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors;
|
||||
|
||||
#if 0
|
||||
if (strcmp(wd->sc_params.atap_model, "ST506") == 0) {
|
||||
if (strcmp(wd->sc_params.atap_model, "ST506") == 0)
|
||||
lp->d_type = DTYPE_ST506;
|
||||
strncpy(lp->d_typename, "ST506 disk", 16);
|
||||
} else {
|
||||
else
|
||||
lp->d_type = DTYPE_ESDI;
|
||||
strncpy(lp->d_typename, "ESDI/IDE",
|
||||
sizeof lp->d_typename);
|
||||
}
|
||||
#endif
|
||||
|
||||
strncpy(lp->d_typename, wd->sc_params.atap_model, 16);
|
||||
strncpy(lp->d_packname, "fictitious", 16);
|
||||
lp->d_secperunit = wd->sc_capacity;
|
||||
|
|
Loading…
Reference in New Issue