Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe A value of 1 for tracks/cylinder in the di...
details: https://anonhg.NetBSD.org/src/rev/66fd9329687d
branches: trunk
changeset: 508037:66fd9329687d
user: oster <oster%NetBSD.org@localhost>
date: Thu Apr 05 02:48:51 2001 +0000
description:
A value of 1 for tracks/cylinder in the disklabel is apparently sub-optimal.
Thus we choose "4 * number_of_columns" as a more reasonable
value (until someone comes up with something better).
This pretends to properly address PR#11989.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 6c1fb9b97124 -r 66fd9329687d sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Thu Apr 05 02:28:53 2001 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Thu Apr 05 02:48:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.104 2001/01/27 20:42:20 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.105 2001/04/05 02:48:51 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -1986,7 +1986,7 @@
lp->d_secperunit = raidPtr->totalSectors;
lp->d_secsize = raidPtr->bytesPerSector;
lp->d_nsectors = raidPtr->Layout.dataSectorsPerStripe;
- lp->d_ntracks = 1;
+ lp->d_ntracks = 4 * raidPtr->numCol;
lp->d_ncylinders = raidPtr->totalSectors /
(lp->d_nsectors * lp->d_ntracks);
lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors;
Home |
Main Index |
Thread Index |
Old Index