Revert last change (the last change was not necessarily desirable, and
had some other minor side-affects that were troublesome).
This commit is contained in:
parent
5e990a7f7c
commit
5845348e54
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue