From: NeilBrown Date: Tue, 4 Nov 2008 09:51:12 +0000 (+1100) Subject: Create: Don't optimise resync as recovery when creating raid5 in a container. X-Git-Tag: mdadm-3.0-devel2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87b47257eb5605b4f96772405368ea3db3fcf9c3;p=thirdparty%2Fmdadm.git 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 --- diff --git a/Create.c b/Create.c index 13301e9b..4806c838 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: