summaryrefslogtreecommitdiffstats
path: root/Create.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 20:51:12 +1100
committerNeilBrown <neilb@suse.de>2008-11-04 20:51:12 +1100
commit87b47257eb5605b4f96772405368ea3db3fcf9c3 (patch)
treeded92932709007b65c7d8b9c491dc175a4db40bd /Create.c
parentf2e55eccfb92969c3e11bc5d4883315f2e866a14 (diff)
downloadmdadm-87b47257eb5605b4f96772405368ea3db3fcf9c3.tar.gz
mdadm-87b47257eb5605b4f96772405368ea3db3fcf9c3.tar.xz
mdadm-87b47257eb5605b4f96772405368ea3db3fcf9c3.zip
Create: Don't optimise resync as recovery when creating raid5 in a container.
As spares are treated quite differently in containers, we cannot fake-up a spare to optimise initialisation for a raid5 in a container, so disable that code for ->external arrays. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Create.c b/Create.c
index 13301e9..4806c83 100644
--- a/Create.c
+++ b/Create.c
@@ -389,7 +389,8 @@ int Create(struct supertype *st, char *mddev,
* as missing, so that a reconstruct happens (faster than re-parity)
* FIX: Can we do this for raid6 as well?
*/
- if (assume_clean==0 && force == 0 && first_missing >= raiddisks) {
+ if (st->ss->external == 0 &&
+ assume_clean==0 && force == 0 && first_missing >= raiddisks) {
switch ( level ) {
case 4:
case 5: