Lots of stuff here that is only used for some of the 'fancier' RAID types.

Don't compile it if we arn't going to use it.
This commit is contained in:
oster 2001-01-26 04:27:16 +00:00
parent bcc70a3f37
commit 61a2ee28fb
2 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_chaindecluster.c,v 1.5 2001/01/26 04:14:14 oster Exp $ */
/* $NetBSD: rf_chaindecluster.c,v 1.6 2001/01/26 04:27:16 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -33,6 +33,9 @@
*****************************************************************************/
#include "rf_archs.h"
#if (RF_INCLUDE_CHAINDECLUSTER > 0)
#include "rf_types.h"
#include "rf_raid.h"
#include "rf_chaindecluster.h"
@ -283,3 +286,4 @@ rf_RAIDCDagSelect(
} else
*createFunc = (RF_VoidFuncPtr) rf_CreateRaidOneWriteDAG;
}
#endif /* (RF_INCLUDE_CHAINDECLUSTER > 0) */

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_dagdegrd.c,v 1.5 2000/01/07 03:40:57 oster Exp $ */
/* $NetBSD: rf_dagdegrd.c,v 1.6 2001/01/26 04:27:16 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -32,6 +32,7 @@
* code for creating degraded read DAGs
*/
#include "rf_archs.h"
#include "rf_types.h"
#include "rf_raid.h"
#include "rf_dag.h"
@ -505,7 +506,7 @@ rf_CreateDegradedReadDAG(
termNode->antecedents[0] = commitNode;
}
#if (RF_INCLUDE_CHAINDECLUSTER > 0)
/******************************************************************************
* Create a degraded read DAG for Chained Declustering
*
@ -644,6 +645,9 @@ rf_CreateRaidCDegradedReadDAG(
termNode->antecedents[0] = commitNode;
termNode->antType[0] = rf_control;
}
#endif (RF_INCLUDE_CHAINDECLUSTER > 0)
#if (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_RAID6 > 0)
/*
* XXX move this elsewhere?
*/
@ -1121,3 +1125,5 @@ rf_DoubleDegRead(
/* zero fill the target data buffers? */
}
#endif /* (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_RAID6 > 0) */