diff options
author | Doug Ledford <dledford@redhat.com> | 2010-04-08 16:56:02 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2010-04-13 15:05:36 -0400 |
commit | e8bf7042ed064590abf44b61ad8d99b1592c0af4 (patch) | |
tree | 4531c37c88288f8549ff14b575835d95484d2c98 /Assemble.c | |
parent | 4eea172155fba6b2e57582ed647a0a98890f1670 (diff) | |
download | mdadm-e8bf7042ed064590abf44b61ad8d99b1592c0af4.tar.gz mdadm-e8bf7042ed064590abf44b61ad8d99b1592c0af4.tar.xz mdadm-e8bf7042ed064590abf44b61ad8d99b1592c0af4.zip |
Make Incremental container assembly behave like native array assembly
Signed-off-by: Doug Ledford <dledford@redhat.com>
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) { |