summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-02-01 13:07:07 +1100
committerNeilBrown <neilb@suse.de>2011-02-01 13:07:07 +1100
commitd438679977ea49a23103d2cfa1014a075e9f0770 (patch)
tree7e698eccc8bfafde914c6e4f41aa2830d3cf18e0 /Assemble.c
parent3c7b4a25950aac37edfef59e7f9f0b57eab18d14 (diff)
Assemble: ignore unknown devices not listed on command line.
If we find a device that has not superblock, we currently fail unless in auto_assem mode. However we really should only fail if the device was explicitly listed in the arg list. So add a test for that. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index 36fd4b7a..ea54fc09 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -379,7 +379,7 @@ int Assemble(struct supertype *st, char *mddev,
}
if (dfd >= 0) close(dfd);
if (tmpdev->used == 2) {
- if (auto_assem)
+ if (auto_assem || !inargv)
/* Ignore unrecognised devices during auto-assembly */
goto loop;
if (ident->uuid_set || ident->name[0] ||