Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe By popular demand (Hi Thor!) make the cyli...
details: https://anonhg.NetBSD.org/src/rev/ecafed8a8825
branches: trunk
changeset: 480302:ecafed8a8825
user: oster <oster%NetBSD.org@localhost>
date: Sun Jan 09 02:56:13 2000 +0000
description:
By popular demand (Hi Thor!) make the cylinder size in a default
disklabel be the size of the (data part) of the stripe.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 525706a4cdc7 -r ecafed8a8825 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Sun Jan 09 02:45:43 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Sun Jan 09 02:56:13 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.44 2000/01/09 01:29:27 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.45 2000/01/09 02:56:13 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -1734,9 +1734,10 @@
/* fabricate a label... */
lp->d_secperunit = raidPtr->totalSectors;
lp->d_secsize = raidPtr->bytesPerSector;
- lp->d_nsectors = 1024 * (1024 / raidPtr->bytesPerSector);
+ lp->d_nsectors = raidPtr->Layout.dataSectorsPerStripe;
lp->d_ntracks = 1;
- lp->d_ncylinders = raidPtr->totalSectors / lp->d_nsectors;
+ lp->d_ncylinders = raidPtr->totalSectors /
+ (lp->d_nsectors * lp->d_ntracks);
lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors;
strncpy(lp->d_typename, "raid", sizeof(lp->d_typename));
Home |
Main Index |
Thread Index |
Old Index