rf_dagflags.h revision 1.1 1 1.1 oster /* $NetBSD: rf_dagflags.h,v 1.1 1998/11/13 04:20:27 oster Exp $ */
2 1.1 oster /*
3 1.1 oster * Copyright (c) 1995 Carnegie-Mellon University.
4 1.1 oster * All rights reserved.
5 1.1 oster *
6 1.1 oster * Author: Mark Holland
7 1.1 oster *
8 1.1 oster * Permission to use, copy, modify and distribute this software and
9 1.1 oster * its documentation is hereby granted, provided that both the copyright
10 1.1 oster * notice and this permission notice appear in all copies of the
11 1.1 oster * software, derivative works or modified versions, and any portions
12 1.1 oster * thereof, and that both notices appear in supporting documentation.
13 1.1 oster *
14 1.1 oster * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15 1.1 oster * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
16 1.1 oster * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 1.1 oster *
18 1.1 oster * Carnegie Mellon requests users of this software to return to
19 1.1 oster *
20 1.1 oster * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
21 1.1 oster * School of Computer Science
22 1.1 oster * Carnegie Mellon University
23 1.1 oster * Pittsburgh PA 15213-3890
24 1.1 oster *
25 1.1 oster * any improvements or extensions that they make and grant Carnegie the
26 1.1 oster * rights to redistribute these changes.
27 1.1 oster */
28 1.1 oster
29 1.1 oster /**************************************************************************************
30 1.1 oster *
31 1.1 oster * dagflags.h -- flags that can be given to DoAccess
32 1.1 oster * I pulled these out of dag.h because routines that call DoAccess may need these flags,
33 1.1 oster * but certainly do not need the declarations related to the DAG data structures.
34 1.1 oster *
35 1.1 oster **************************************************************************************/
36 1.1 oster
37 1.1 oster /* :
38 1.1 oster * Log: rf_dagflags.h,v
39 1.1 oster * Revision 1.10 1996/06/13 19:08:23 jimz
40 1.1 oster * remove unused BD flag
41 1.1 oster *
42 1.1 oster * Revision 1.9 1996/05/30 11:29:41 jimz
43 1.1 oster * Numerous bug fixes. Stripe lock release code disagreed with the taking code
44 1.1 oster * about when stripes should be locked (I made it consistent: no parity, no lock)
45 1.1 oster * There was a lot of extra serialization of I/Os which I've removed- a lot of
46 1.1 oster * it was to calculate values for the cache code, which is no longer with us.
47 1.1 oster * More types, function, macro cleanup. Added code to properly quiesce the array
48 1.1 oster * on shutdown. Made a lot of stuff array-specific which was (bogusly) general
49 1.1 oster * before. Fixed memory allocation, freeing bugs.
50 1.1 oster *
51 1.1 oster * Revision 1.8 1996/05/24 22:17:04 jimz
52 1.1 oster * continue code + namespace cleanup
53 1.1 oster * typed a bunch of flags
54 1.1 oster *
55 1.1 oster * Revision 1.7 1996/05/23 21:46:35 jimz
56 1.1 oster * checkpoint in code cleanup (release prep)
57 1.1 oster * lots of types, function names have been fixed
58 1.1 oster *
59 1.1 oster * Revision 1.6 1995/12/01 15:59:40 root
60 1.1 oster * added copyright info
61 1.1 oster *
62 1.1 oster */
63 1.1 oster
64 1.1 oster #ifndef _RF__RF_DAGFLAGS_H_
65 1.1 oster #define _RF__RF_DAGFLAGS_H_
66 1.1 oster
67 1.1 oster /*
68 1.1 oster * Bitmasks for the "flags" parameter (RF_RaidAccessFlags_t) used
69 1.1 oster * by DoAccess, SelectAlgorithm, and the DAG creation routines.
70 1.1 oster *
71 1.1 oster * If USE_DAG or USE_ASM is specified, neither the DAG nor the ASM
72 1.1 oster * will be modified, which means that you can't SUPRESS if you
73 1.1 oster * specify USE_DAG.
74 1.1 oster */
75 1.1 oster
76 1.1 oster #define RF_DAG_FLAGS_NONE 0 /* no flags */
77 1.1 oster #define RF_DAG_SUPPRESS_LOCKS (1<<0) /* supress all stripe locks in the DAG */
78 1.1 oster #define RF_DAG_RETURN_ASM (1<<1) /* create an ASM and return it instead of freeing it */
79 1.1 oster #define RF_DAG_RETURN_DAG (1<<2) /* create a DAG and return it instead of freeing it */
80 1.1 oster #define RF_DAG_NONBLOCKING_IO (1<<3) /* cause DoAccess to be non-blocking */
81 1.1 oster #define RF_DAG_ACCESS_COMPLETE (1<<4) /* the access is complete */
82 1.1 oster #define RF_DAG_DISPATCH_RETURNED (1<<5) /* used to handle the case where the dag invokes no I/O */
83 1.1 oster #define RF_DAG_TEST_ACCESS (1<<6) /* this access came through rf_ioctl instead of rf_strategy */
84 1.1 oster
85 1.1 oster #endif /* !_RF__RF_DAGFLAGS_H_ */
86