Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Revert last change (the last change was no...



details:   https://anonhg.NetBSD.org/src/rev/408e1fdacd18
branches:  trunk
changeset: 485060:408e1fdacd18
user:      oster <oster%NetBSD.org@localhost>
date:      Mon Apr 17 19:35:12 2000 +0000

description:
Revert last change (the last change was not necessarily desirable, and
had some other minor side-affects that were troublesome).

diffstat:

 sys/dev/raidframe/rf_layout.c |  13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diffs (34 lines):

diff -r 45ff0730c7fb -r 408e1fdacd18 sys/dev/raidframe/rf_layout.c
--- a/sys/dev/raidframe/rf_layout.c     Mon Apr 17 17:39:17 2000 +0000
+++ b/sys/dev/raidframe/rf_layout.c     Mon Apr 17 19:35:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_layout.c,v 1.5 2000/04/16 03:24:26 oster Exp $      */
+/*     $NetBSD: rf_layout.c,v 1.6 2000/04/17 19:35:12 oster Exp $      */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -29,9 +29,6 @@
 /* rf_layout.c -- driver code dealing with layout and mapping issues
  */
 
-#include <sys/types.h>
-#include <machine/param.h>
-
 #include "rf_types.h"
 #include "rf_archs.h"
 #include "rf_raid.h"
@@ -446,14 +443,6 @@
                return (EINVAL); 
        }
 
-       if ((layoutPtr->sectorsPerStripeUnit * 
-            (1 << raidPtr->logBytesPerSector)) > MAXPHYS) {
-               RF_ERRORMSG2("raid%d: sectorsPerStripeUnit (%d) would exceed MAXPHYS\n",
-                            raidPtr->raidid, 
-                            (int)layoutPtr->sectorsPerStripeUnit);
-               return (EINVAL); 
-       }
-
        layoutPtr->stripeUnitsPerDisk = raidPtr->sectorsPerDisk / layoutPtr->sectorsPerStripeUnit;
 
        p = rf_GetLayout(parityConfig);



Home | Main Index | Thread Index | Old Index