1 /* $NetBSD: rf_copyback.h,v 1.4.18.3 2004/09/21 13:32:51 skrll Exp $ */
6 * Copyright (c) 1996 Carnegie-Mellon University.
11 * Permission to use, copy, modify and distribute this software and
12 * its documentation is hereby granted, provided that both the copyright
13 * notice and this permission notice appear in all copies of the
14 * software, derivative works or modified versions, and any portions
15 * thereof, and that both notices appear in supporting documentation.
17 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
18 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
19 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
21 * Carnegie Mellon requests users of this software to return to
23 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
24 * School of Computer Science
25 * Carnegie Mellon University
26 * Pittsburgh PA 15213-3890
28 * any improvements or extensions that they make and grant Carnegie the
29 * rights to redistribute these changes.
32 #ifndef _RF__RF_COPYBACK_H_
33 #define _RF__RF_COPYBACK_H_
35 #include <dev/raidframe/raidframevar.h>
37 typedef struct RF_CopybackDesc_s
{
42 RF_StripeNum_t stripeAddr
;
43 RF_SectorCount_t sectPerSU
;
44 RF_SectorCount_t sectPerStripe
;
46 RF_DiskQueueData_t
*readreq
;
47 RF_DiskQueueData_t
*writereq
;
48 struct timeval starttime
;
52 extern int rf_copyback_in_progress
;
54 int rf_ConfigureCopyback(RF_ShutdownList_t
** listp
);
55 void rf_CopybackReconstructedData(RF_Raid_t
* raidPtr
);
56 void rf_ContinueCopyback(RF_CopybackDesc_t
* desc
);
58 #endif /* !_RF__RF_COPYBACK_H_ */