summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2010-04-08 16:56:02 -0400
committerDoug Ledford <dledford@redhat.com>2010-04-13 15:05:36 -0400
commite8bf7042ed064590abf44b61ad8d99b1592c0af4 (patch)
tree4531c37c88288f8549ff14b575835d95484d2c98 /Assemble.c
parent4eea172155fba6b2e57582ed647a0a98890f1670 (diff)
downloadmdadm-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Assemble.c b/Assemble.c
index 1504f1f..d059155 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -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) {