diff options
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1327,8 +1327,10 @@ int assemble_container_content(struct supertype *st, int mdfd, content->text_version, content->uuid, chosen_name); - if (runstop > 0 || - (working + preexist) >= content->array.working_disks) { + if ((runstop > 0 && + (working + preexist) >= content->array.working_disks) || + (runstop == 0 && + (working + preexist) == content->array.raid_disks)) { int err; switch(content->array.level) { |