1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Don't clip d_ncylinders to value used by partitions.

This commit is contained in:
Jordan K. Hubbard 1995-08-23 11:43:45 +00:00
parent b8ef36f62e
commit 215b0e62d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10198
2 changed files with 4 additions and 4 deletions

View File

@ -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 <stddef.h>
@ -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;
}
/*

View File

@ -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 <stddef.h>
@ -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;
}
/*