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>
This commit is contained in:
parent
3c7b4a2595
commit
d438679977
|
@ -379,7 +379,7 @@ int Assemble(struct supertype *st, char *mddev,
|
||||||
}
|
}
|
||||||
if (dfd >= 0) close(dfd);
|
if (dfd >= 0) close(dfd);
|
||||||
if (tmpdev->used == 2) {
|
if (tmpdev->used == 2) {
|
||||||
if (auto_assem)
|
if (auto_assem || !inargv)
|
||||||
/* Ignore unrecognised devices during auto-assembly */
|
/* Ignore unrecognised devices during auto-assembly */
|
||||||
goto loop;
|
goto loop;
|
||||||
if (ident->uuid_set || ident->name[0] ||
|
if (ident->uuid_set || ident->name[0] ||
|
||||||
|
|
Loading…
Reference in New Issue