Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/dev/raidframe Pull up revision 1.105 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/e14a8947136c
branches:  netbsd-1-5
changeset: 491123:e14a8947136c
user:      he <he%NetBSD.org@localhost>
date:      Thu Apr 05 12:25:03 2001 +0000

description:
Pull up revision 1.105 (requested by oster):
  In order to improve FFS layout, use a value of "4 * number_of_columns"
  instead of "1" for the number of tracks/cylinder in the disklabel.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ba5e96336d3e -r e14a8947136c sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Thu Apr 05 12:23:12 2001 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Thu Apr 05 12:25:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.92.2.7 2000/10/20 17:48:32 tv Exp $       */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.92.2.8 2001/04/05 12:25:03 he Exp $       */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -1937,7 +1937,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