diff options
| author | oster <oster@NetBSD.org> | 1999-02-23 23:57:53 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 1999-02-23 23:57:53 +0000 |
| commit | be9eca67c8faf942e767f0cf0516f9dc975602ce (patch) | |
| tree | d25f5102fbd656e266e79d1560126899298d5cdf /sys/dev/raidframe/rf_raid.h | |
| parent | 07b6b89dce5d2591c0ac2108c35662ca089f1b75 (diff) | |
Cleanup/remove unused cruft. First kick at component labels and clean bits.
Still work in progress. New code is there, but not enabled yet.
Diffstat (limited to 'sys/dev/raidframe/rf_raid.h')
| -rw-r--r-- | sys/dev/raidframe/rf_raid.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_raid.h b/sys/dev/raidframe/rf_raid.h index cc88f30b656..1af6083ff6c 100644 --- a/sys/dev/raidframe/rf_raid.h +++ b/sys/dev/raidframe/rf_raid.h @@ -1,4 +1,4 @@ -/* $NetBSD: rf_raid.h,v 1.3 1999/02/05 00:06:15 oster Exp $ */ +/* $NetBSD: rf_raid.h,v 1.4 1999/02/23 23:57:53 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -59,6 +59,10 @@ #define RF_MAX_DISKS 128 /* max disks per array */ #define RF_DEV2RAIDID(_dev) (DISKUNIT(_dev)) +#define RF_RAID_DIRTY 0 +#define RF_RAID_CLEAN 1 + + /* * Each row in the array is a distinct parity group, so * each has it's own status, which is one of the following. @@ -93,7 +97,9 @@ struct RF_ThroughputStats_s { struct RF_Raid_s { /* This portion never changes, and can be accessed without locking */ /* an exception is Disks[][].status, which requires locking when it is - * changed */ + * changed. XXX this is no longer true. numSpare and friends can + * change now. + */ u_int numRow; /* number of rows of disks, typically == # of * ranks */ u_int numCol; /* number of columns of disks, typically == # @@ -124,7 +130,7 @@ struct RF_Raid_s { RF_LockTableEntry_t *lockTable; /* stripe-lock table */ RF_LockTableEntry_t *quiesceLock; /* quiesnce table */ int numFailures; /* total number of failures in the array */ - + int clean; /* the clean bit for this array. */ /* * Cleanup stuff */ |
