]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
FIX: Array is not run when expansion disks are added
authorAdam Kwolek <adam.kwolek@intel.com>
Tue, 7 Feb 2012 14:03:19 +0000 (15:03 +0100)
committerNeilBrown <neilb@suse.de>
Thu, 9 Feb 2012 01:20:51 +0000 (12:20 +1100)
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 <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c

index ad4eb9c64500d1e6e736b62199d2bad6677b0299..13adfc3bde5dd92bc75b0837eca76b1535fb891d 100644 (file)
@@ -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),