mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Make ccd use the maxsecsize sector size as denominator, this
fixes ccd on != 512byte devices..
This commit is contained in:
parent
19accede88
commit
e59f3105f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25360
@ -1,4 +1,4 @@
|
||||
/* $Id: ccd.c,v 1.21 1997/02/22 09:28:56 peter Exp $ */
|
||||
/* $Id: ccd.c,v 1.22 1997/03/24 11:23:21 bde Exp $ */
|
||||
|
||||
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
|
||||
|
||||
@ -484,7 +484,7 @@ ccdinit(ccd, cpaths, p)
|
||||
* Create pseudo-geometry based on 1MB cylinders. It's
|
||||
* pretty close.
|
||||
*/
|
||||
ccg->ccg_secsize = DEV_BSIZE;
|
||||
ccg->ccg_secsize = maxsecsize;
|
||||
ccg->ccg_ntracks = 1;
|
||||
ccg->ccg_nsectors = 1024 * (1024 / ccg->ccg_secsize);
|
||||
ccg->ccg_ncylinders = cs->sc_size / ccg->ccg_nsectors;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: ccd.c,v 1.21 1997/02/22 09:28:56 peter Exp $ */
|
||||
/* $Id: ccd.c,v 1.22 1997/03/24 11:23:21 bde Exp $ */
|
||||
|
||||
/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
|
||||
|
||||
@ -484,7 +484,7 @@ ccdinit(ccd, cpaths, p)
|
||||
* Create pseudo-geometry based on 1MB cylinders. It's
|
||||
* pretty close.
|
||||
*/
|
||||
ccg->ccg_secsize = DEV_BSIZE;
|
||||
ccg->ccg_secsize = maxsecsize;
|
||||
ccg->ccg_ntracks = 1;
|
||||
ccg->ccg_nsectors = 1024 * (1024 / ccg->ccg_secsize);
|
||||
ccg->ccg_ncylinders = cs->sc_size / ccg->ccg_nsectors;
|
||||
|
Loading…
Reference in New Issue
Block a user