diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2012-02-07 15:03:19 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-02-09 12:20:51 +1100 |
commit | 111e9fdaa8a5084bd329819a0906a685b2271c0d (patch) | |
tree | 9838227e9133979a9b12443374e5ac69dd18e131 | |
parent | d2bde6d3aa9468ddf0965f09907a666b92186e42 (diff) |
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 <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | Assemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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), |