summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-04-17 19:35:12 +0000
committeroster <oster@NetBSD.org>2000-04-17 19:35:12 +0000
commit5845348e544efae4642c159d5264447566ebe08e (patch)
tree6396d0662d8a1e3002bcb499137a73f4dd6cfeaa /sys/dev/raidframe
parent5e990a7f7c39c65de9e7ef8835b1ae7a82ee6702 (diff)
Revert last change (the last change was not necessarily desirable, and
had some other minor side-affects that were troublesome).
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_layout.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/raidframe/rf_layout.c b/sys/dev/raidframe/rf_layout.c
index 0a5da4059bd..7877fa73d18 100644
--- a/sys/dev/raidframe/rf_layout.c
+++ b/sys/dev/raidframe/rf_layout.c
@@ -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 @@ rf_ConfigureLayout(
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);