diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-07-18 19:09:48 -0700 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2002-07-18 19:09:48 -0700 |
| commit | d58aa811a0d3ce0ad83cd2b70909e0ac47479e67 (patch) | |
| tree | 421bceea68d07a26bebc4a7e0673593f5a8d5b90 /include/linux/raid | |
| parent | 8ee831455426e47e8e3b98e7683c594d551c84d6 (diff) | |
[PATCH] MD - Add "degraded" field to md device
Add "degraded" field to md device
This is used to determine if a spare should be added
without relying on the superblock.
Diffstat (limited to 'include/linux/raid')
| -rw-r--r-- | include/linux/raid/md_k.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index f3c8dcc7d8a8..369a2e56d22c 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h @@ -192,6 +192,10 @@ struct mddev_s atomic_t active; mdp_disk_t *spare; + int degraded; /* whether md should consider + * adding a spare + */ + atomic_t recovery_active; /* blocks scheduled, but not written */ wait_queue_head_t recovery_wait; |
