Merged from sys/kern/subr_diskmbr.c revision 1.52.

This commit is contained in:
Yoshihiro Takahashi 2001-06-03 03:36:57 +00:00
parent 5544e8e700
commit efcd68f008

View File

@ -438,14 +438,9 @@ dsinit(dev, lp, sspp)
*/
secpercyl = (u_long)max_nsectors * max_ntracks;
if (secpercyl != 0) {
u_long secperunit;
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;
}