Home | History | Annotate | Line # | Download | only in raidframe
rf_archs.h revision 1.1
      1  1.1  oster /*	$NetBSD: rf_archs.h,v 1.1 1998/11/13 04:20:26 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 /* rf_archs.h -- defines for which architectures you want to
     30  1.1  oster  * include is some particular build of raidframe.  Unfortunately,
     31  1.1  oster  * it's difficult to exclude declustering, P+Q, and distributed
     32  1.1  oster  * sparing because the code is intermixed with RAID5 code.  This
     33  1.1  oster  * should be fixed.
     34  1.1  oster  *
     35  1.1  oster  * this is really intended only for use in the kernel, where I
     36  1.1  oster  * am worried about the size of the object module.  At user level and
     37  1.1  oster  * in the simulator, I don't really care that much, so all the
     38  1.1  oster  * architectures can be compiled together.  Note that by itself, turning
     39  1.1  oster  * off these defines does not affect the size of the executable; you
     40  1.1  oster  * have to edit the makefile for that.
     41  1.1  oster  *
     42  1.1  oster  * comment out any line below to eliminate that architecture.
     43  1.1  oster  * the list below includes all the modules that can be compiled
     44  1.1  oster  * out.
     45  1.1  oster  *
     46  1.1  oster  * :
     47  1.1  oster  * Log: rf_archs.h,v
     48  1.1  oster  * Revision 1.32  1996/08/20 23:05:40  jimz
     49  1.1  oster  * define RF_KEEP_DISKSTATS to 1
     50  1.1  oster  *
     51  1.1  oster  * Revision 1.31  1996/07/31  15:34:04  jimz
     52  1.1  oster  * include evenodd
     53  1.1  oster  *
     54  1.1  oster  * Revision 1.30  1996/07/27  23:36:08  jimz
     55  1.1  oster  * Solaris port of simulator
     56  1.1  oster  *
     57  1.1  oster  * Revision 1.29  1996/07/26  20:11:46  jimz
     58  1.1  oster  * only define RF_DEMO for CMU_PDL
     59  1.1  oster  *
     60  1.1  oster  * Revision 1.28  1996/07/26  20:10:57  jimz
     61  1.1  oster  * define RF_CMU_PDL only if it isn't already defined
     62  1.1  oster  *
     63  1.1  oster  * Revision 1.27  1996/07/18  22:57:14  jimz
     64  1.1  oster  * port simulator to AIX
     65  1.1  oster  *
     66  1.1  oster  * Revision 1.26  1996/06/17  14:38:33  jimz
     67  1.1  oster  * properly #if out RF_DEMO code
     68  1.1  oster  * fix bug in MakeConfig that was causing weird behavior
     69  1.1  oster  * in configuration routines (config was not zeroed at start)
     70  1.1  oster  * clean up genplot handling of stacks
     71  1.1  oster  *
     72  1.1  oster  * Revision 1.25  1996/06/14  21:24:59  jimz
     73  1.1  oster  * turn on RF_CMU_PDL by default
     74  1.1  oster  *
     75  1.1  oster  * Revision 1.24  1996/06/13  20:41:57  jimz
     76  1.1  oster  * add RF_INCLUDE_QUEUE_RANDOM (0)
     77  1.1  oster  *
     78  1.1  oster  * Revision 1.23  1996/06/11  18:12:36  jimz
     79  1.1  oster  * get rid of JOIN operations
     80  1.1  oster  * use ThreadGroup stuff instead
     81  1.1  oster  * fix some allocation/deallocation and sync bugs
     82  1.1  oster  *
     83  1.1  oster  * Revision 1.22  1996/06/10  22:24:55  wvcii
     84  1.1  oster  * added symbols for enabling forward or backward error
     85  1.1  oster  * recovery experiments
     86  1.1  oster  *
     87  1.1  oster  * Revision 1.21  1996/06/05  18:06:02  jimz
     88  1.1  oster  * Major code cleanup. The Great Renaming is now done.
     89  1.1  oster  * Better modularity. Better typing. Fixed a bunch of
     90  1.1  oster  * synchronization bugs. Made a lot of global stuff
     91  1.1  oster  * per-desc or per-array. Removed dead code.
     92  1.1  oster  *
     93  1.1  oster  * Revision 1.20  1996/05/30  11:29:41  jimz
     94  1.1  oster  * Numerous bug fixes. Stripe lock release code disagreed with the taking code
     95  1.1  oster  * about when stripes should be locked (I made it consistent: no parity, no lock)
     96  1.1  oster  * There was a lot of extra serialization of I/Os which I've removed- a lot of
     97  1.1  oster  * it was to calculate values for the cache code, which is no longer with us.
     98  1.1  oster  * More types, function, macro cleanup. Added code to properly quiesce the array
     99  1.1  oster  * on shutdown. Made a lot of stuff array-specific which was (bogusly) general
    100  1.1  oster  * before. Fixed memory allocation, freeing bugs.
    101  1.1  oster  *
    102  1.1  oster  * Revision 1.19  1996/05/27  18:56:37  jimz
    103  1.1  oster  * more code cleanup
    104  1.1  oster  * better typing
    105  1.1  oster  * compiles in all 3 environments
    106  1.1  oster  *
    107  1.1  oster  * Revision 1.18  1996/05/23  21:46:35  jimz
    108  1.1  oster  * checkpoint in code cleanup (release prep)
    109  1.1  oster  * lots of types, function names have been fixed
    110  1.1  oster  *
    111  1.1  oster  * Revision 1.17  1996/05/23  00:33:23  jimz
    112  1.1  oster  * code cleanup: move all debug decls to rf_options.c, all extern
    113  1.1  oster  * debug decls to rf_options.h, all debug vars preceded by rf_
    114  1.1  oster  *
    115  1.1  oster  * Revision 1.16  1996/05/18  19:51:34  jimz
    116  1.1  oster  * major code cleanup- fix syntax, make some types consistent,
    117  1.1  oster  * add prototypes, clean out dead code, et cetera
    118  1.1  oster  *
    119  1.1  oster  * Revision 1.15  1996/05/15  22:32:59  jimz
    120  1.1  oster  * remove cache and vs stuff
    121  1.1  oster  *
    122  1.1  oster  * Revision 1.14  1995/11/30  16:27:34  wvcii
    123  1.1  oster  * added copyright info
    124  1.1  oster  *
    125  1.1  oster  * Revision 1.13  1995/11/28  21:23:44  amiri
    126  1.1  oster  * added the interleaved declustering architecture
    127  1.1  oster  * ('I'), with distributed sparing.
    128  1.1  oster  *
    129  1.1  oster  * Revision 1.12  1995/11/17  16:59:45  amiri
    130  1.1  oster  * don't INCLUDE_CHAINDECLUSTER in the kernel
    131  1.1  oster  * source.
    132  1.1  oster  *
    133  1.1  oster  * Revision 1.11  1995/11/16  16:15:21  amiri
    134  1.1  oster  * don't include RAID5 with rotated sparing (INCLUDE_RAID5_RS) in kernel
    135  1.1  oster  *
    136  1.1  oster  * Revision 1.10  1995/10/12  17:40:47  jimz
    137  1.1  oster  * define INCLUDE_LS
    138  1.1  oster  *
    139  1.1  oster  * Revision 1.9  1995/10/11  06:56:47  jimz
    140  1.1  oster  * define INCLUDE_VS (sanity check for compilation)
    141  1.1  oster  *
    142  1.1  oster  * Revision 1.8  1995/10/05  18:56:24  jimz
    143  1.1  oster  * don't INCLUDE_VS
    144  1.1  oster  *
    145  1.1  oster  * Revision 1.7  1995/10/04  03:51:20  wvcii
    146  1.1  oster  * added raid 1
    147  1.1  oster  *
    148  1.1  oster  * Revision 1.6  1995/09/07  09:59:29  wvcii
    149  1.1  oster  * unstable archs conditionally defined for !KERNEL makes
    150  1.1  oster  *
    151  1.1  oster  *
    152  1.1  oster  */
    153  1.1  oster 
    154  1.1  oster #ifndef _RF__RF_ARCHS_H_
    155  1.1  oster #define _RF__RF_ARCHS_H_
    156  1.1  oster 
    157  1.1  oster /*
    158  1.1  oster  * Turn off if you do not have CMU PDL support compiled
    159  1.1  oster  * into your kernel.
    160  1.1  oster  */
    161  1.1  oster #ifndef RF_CMU_PDL
    162  1.1  oster #define RF_CMU_PDL 0
    163  1.1  oster #endif /* !RF_CMU_PDL */
    164  1.1  oster 
    165  1.1  oster /*
    166  1.1  oster  * Khalil's performance-displaying demo stuff.
    167  1.1  oster  * Relies on CMU meter tools.
    168  1.1  oster  */
    169  1.1  oster #ifndef KERNEL
    170  1.1  oster #if RF_CMU_PDL > 0
    171  1.1  oster #define RF_DEMO 1
    172  1.1  oster #endif /* RF_CMU_PDL > 0 */
    173  1.1  oster #endif /* !KERNEL */
    174  1.1  oster 
    175  1.1  oster #define RF_INCLUDE_EVENODD       1
    176  1.1  oster 
    177  1.1  oster #define RF_INCLUDE_RAID5_RS      1
    178  1.1  oster #define RF_INCLUDE_PARITYLOGGING 1
    179  1.1  oster 
    180  1.1  oster #define RF_INCLUDE_CHAINDECLUSTER 1
    181  1.1  oster #define RF_INCLUDE_INTERDECLUSTER 1
    182  1.1  oster 
    183  1.1  oster #define RF_INCLUDE_RAID0   1
    184  1.1  oster #define RF_INCLUDE_RAID1   1
    185  1.1  oster #define RF_INCLUDE_RAID4   1
    186  1.1  oster #define RF_INCLUDE_RAID5   1
    187  1.1  oster #define RF_INCLUDE_RAID6   0
    188  1.1  oster #define RF_INCLUDE_DECL_PQ 0
    189  1.1  oster 
    190  1.1  oster #define RF_MEMORY_REDZONES 0
    191  1.1  oster #define RF_RECON_STATS     1
    192  1.1  oster 
    193  1.1  oster #define RF_INCLUDE_QUEUE_RANDOM 0
    194  1.1  oster 
    195  1.1  oster #define RF_KEEP_DISKSTATS 1
    196  1.1  oster 
    197  1.1  oster /* These two symbols enable nonstandard forms of error recovery.
    198  1.1  oster  * These modes are only valid for performance measurements and
    199  1.1  oster  * data corruption will occur if an error occurs when either
    200  1.1  oster  * forward or backward error recovery are enabled.  In general
    201  1.1  oster  * both of the following two definitions should be commented
    202  1.1  oster  * out--this forces RAIDframe to use roll-away error recovery
    203  1.1  oster  * which does guarantee proper error recovery without data corruption
    204  1.1  oster  */
    205  1.1  oster /* #define RF_FORWARD 1 */
    206  1.1  oster /* #define RF_BACKWARD 1 */
    207  1.1  oster 
    208  1.1  oster #include "rf_options.h"
    209  1.1  oster 
    210  1.1  oster #endif /* !_RF__RF_ARCHS_H_ */
    211