mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Properly initialize the d_ncylinders field to the maximum number of
cylinders.
This commit is contained in:
parent
5ef834d28d
commit
b8ef36f62e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10197
2 changed files with 4 additions and 2 deletions
|
@ -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.13 1995/05/07 07:06:36 bde Exp $
|
||||
* $Id: diskslice_machdep.c,v 1.14 1995/05/18 22:45:35 phk Exp $
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
|
@ -298,6 +298,7 @@ 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;
|
||||
|
|
|
@ -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.13 1995/05/07 07:06:36 bde Exp $
|
||||
* $Id: diskslice_machdep.c,v 1.14 1995/05/18 22:45:35 phk Exp $
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
|
@ -298,6 +298,7 @@ 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;
|
||||
|
|
Loading…
Reference in a new issue