2 /* $NetBSD: rf_chaindecluster.h,v 1.4 2001/01/26 04:14:14 oster Exp $ */
4 * Copyright (c) 1995 Carnegie-Mellon University.
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
30 /* rf_chaindecluster.h
31 * header file for Chained Declustering
35 #ifndef _RF__RF_CHAINDECLUSTER_H_
36 #define _RF__RF_CHAINDECLUSTER_H_
39 rf_ConfigureChainDecluster(RF_ShutdownList_t ** listp, RF_Raid_t * raidPtr,
40 RF_Config_t * cfgPtr);
41 RF_ReconUnitCount_t rf_GetNumSpareRUsChainDecluster(RF_Raid_t * raidPtr);
43 rf_MapSectorChainDecluster(RF_Raid_t * raidPtr, RF_RaidAddr_t raidSector,
44 RF_RowCol_t * row, RF_RowCol_t * col, RF_SectorNum_t * diskSector, int remap);
46 rf_MapParityChainDecluster(RF_Raid_t * raidPtr, RF_RaidAddr_t raidSector,
47 RF_RowCol_t * row, RF_RowCol_t * col, RF_SectorNum_t * diskSector, int remap);
49 rf_IdentifyStripeChainDecluster(RF_Raid_t * raidPtr, RF_RaidAddr_t addr,
50 RF_RowCol_t ** diskids, RF_RowCol_t * outRow);
52 rf_MapSIDToPSIDChainDecluster(RF_RaidLayout_t * layoutPtr,
53 RF_StripeNum_t stripeID, RF_StripeNum_t * psID,
54 RF_ReconUnitNum_t * which_ru);
56 rf_RAIDCDagSelect(RF_Raid_t * raidPtr, RF_IoType_t type,
57 RF_AccessStripeMap_t * asmap,
60 void (**createFunc) (RF_Raid_t *,
61 RF_AccessStripeMap_t *,
65 RF_AllocListElem_t *);
68 #endif /* !_RF__RF_CHAINDECLUSTER_H_ */