Properly initialize the d_ncylinders field to the maximum number of
cylinders.
This commit is contained in:
parent
9f26959919
commit
9949f9b318
@ -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 @@ reread_mbr:
|
||||
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 @@ reread_mbr:
|
||||
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…
x
Reference in New Issue
Block a user