diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 20:51:12 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 20:51:12 +1100 |
commit | 87b47257eb5605b4f96772405368ea3db3fcf9c3 (patch) | |
tree | ded92932709007b65c7d8b9c491dc175a4db40bd | |
parent | f2e55eccfb92969c3e11bc5d4883315f2e866a14 (diff) | |
download | mdadm-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>
-rw-r--r-- | Create.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |