From: Adam Kwolek Date: Tue, 7 Feb 2012 14:03:19 +0000 (+0100) Subject: FIX: Array is not run when expansion disks are added X-Git-Tag: mdadm-3.2.4~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=111e9fdaa8a5084bd329819a0906a685b2271c0d;p=thirdparty%2Fmdadm.git FIX: Array is not run when expansion disks are added When added disk is disk added by expansion and this is last disk added to array, assemble_container_content() will not even try to run such array. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- diff --git a/Assemble.c b/Assemble.c index ad4eb9c6..13adfc3b 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1557,7 +1557,7 @@ int assemble_container_content(struct supertype *st, int mdfd, working++; } else if (errno == EEXIST) preexist++; - if (working == 0) + if (working + expansion == 0) return 1;/* Nothing new, don't try to start */ map_update(&map, fd2devnum(mdfd),