diff options
Diffstat (limited to 'include/linux/raid')
-rw-r--r-- | include/linux/raid/md_k.h | 4 | ||||
-rw-r--r-- | include/linux/raid/raid5.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index 617b9506c760..4e26ef2cacca 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h | |||
@@ -157,6 +157,9 @@ struct mddev_s | |||
157 | * DONE: thread is done and is waiting to be reaped | 157 | * DONE: thread is done and is waiting to be reaped |
158 | * REQUEST: user-space has requested a sync (used with SYNC) | 158 | * REQUEST: user-space has requested a sync (used with SYNC) |
159 | * CHECK: user-space request for for check-only, no repair | 159 | * CHECK: user-space request for for check-only, no repair |
160 | * RESHAPE: A reshape is happening | ||
161 | * | ||
162 | * If neither SYNC or RESHAPE are set, then it is a recovery. | ||
160 | */ | 163 | */ |
161 | #define MD_RECOVERY_RUNNING 0 | 164 | #define MD_RECOVERY_RUNNING 0 |
162 | #define MD_RECOVERY_SYNC 1 | 165 | #define MD_RECOVERY_SYNC 1 |
@@ -166,6 +169,7 @@ struct mddev_s | |||
166 | #define MD_RECOVERY_NEEDED 5 | 169 | #define MD_RECOVERY_NEEDED 5 |
167 | #define MD_RECOVERY_REQUESTED 6 | 170 | #define MD_RECOVERY_REQUESTED 6 |
168 | #define MD_RECOVERY_CHECK 7 | 171 | #define MD_RECOVERY_CHECK 7 |
172 | #define MD_RECOVERY_RESHAPE 8 | ||
169 | unsigned long recovery; | 173 | unsigned long recovery; |
170 | 174 | ||
171 | int in_sync; /* know to not need resync */ | 175 | int in_sync; /* know to not need resync */ |
diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h index 6fa274aea2a0..55c738d50508 100644 --- a/include/linux/raid/raid5.h +++ b/include/linux/raid/raid5.h | |||
@@ -157,6 +157,7 @@ struct stripe_head { | |||
157 | #define R5_ReadError 8 /* seen a read error here recently */ | 157 | #define R5_ReadError 8 /* seen a read error here recently */ |
158 | #define R5_ReWrite 9 /* have tried to over-write the readerror */ | 158 | #define R5_ReWrite 9 /* have tried to over-write the readerror */ |
159 | 159 | ||
160 | #define R5_Expanded 10 /* This block now has post-expand data */ | ||
160 | /* | 161 | /* |
161 | * Write method | 162 | * Write method |
162 | */ | 163 | */ |
@@ -176,7 +177,8 @@ struct stripe_head { | |||
176 | #define STRIPE_DEGRADED 7 | 177 | #define STRIPE_DEGRADED 7 |
177 | #define STRIPE_BIT_DELAY 8 | 178 | #define STRIPE_BIT_DELAY 8 |
178 | #define STRIPE_EXPANDING 9 | 179 | #define STRIPE_EXPANDING 9 |
179 | 180 | #define STRIPE_EXPAND_SOURCE 10 | |
181 | #define STRIPE_EXPAND_READY 11 | ||
180 | /* | 182 | /* |
181 | * Plugging: | 183 | * Plugging: |
182 | * | 184 | * |