diff --git a/sys/i386/isa/diskslice_machdep.c b/sys/i386/isa/diskslice_machdep.c index 52a4c383ef54..d92b7091e0e7 100644 --- a/sys/i386/isa/diskslice_machdep.c +++ b/sys/i386/isa/diskslice_machdep.c @@ -35,7 +35,7 @@ * * from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91 * from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $ - * $Id: diskslice_machdep.c,v 1.14 1995/05/18 22:45:35 phk Exp $ + * $Id: diskslice_machdep.c,v 1.15 1995/08/23 10:41:57 jkh Exp $ */ #include @@ -298,13 +298,13 @@ dsinit(dname, dev, strat, lp, sspp) if (secpercyl != 0) { u_long secperunit; - lp->d_ncylinders = max_ncyls; lp->d_nsectors = max_nsectors; lp->d_ntracks = max_ntracks; lp->d_secpercyl = secpercyl; secperunit = secpercyl * max_ncyls; if (lp->d_secperunit < secperunit) lp->d_secperunit = secperunit; + lp->d_ncylinders = lp->d_secperunit / secpercyl; } /* diff --git a/sys/kern/subr_diskmbr.c b/sys/kern/subr_diskmbr.c index 52a4c383ef54..d92b7091e0e7 100644 --- a/sys/kern/subr_diskmbr.c +++ b/sys/kern/subr_diskmbr.c @@ -35,7 +35,7 @@ * * from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91 * from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $ - * $Id: diskslice_machdep.c,v 1.14 1995/05/18 22:45:35 phk Exp $ + * $Id: diskslice_machdep.c,v 1.15 1995/08/23 10:41:57 jkh Exp $ */ #include @@ -298,13 +298,13 @@ dsinit(dname, dev, strat, lp, sspp) if (secpercyl != 0) { u_long secperunit; - lp->d_ncylinders = max_ncyls; lp->d_nsectors = max_nsectors; lp->d_ntracks = max_ntracks; lp->d_secpercyl = secpercyl; secperunit = secpercyl * max_ncyls; if (lp->d_secperunit < secperunit) lp->d_secperunit = secperunit; + lp->d_ncylinders = lp->d_secperunit / secpercyl; } /*