diff options
author | NeilBrown <neilb@suse.de> | 2011-02-01 13:07:07 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-02-01 13:07:07 +1100 |
commit | d438679977ea49a23103d2cfa1014a075e9f0770 (patch) | |
tree | 7e698eccc8bfafde914c6e4f41aa2830d3cf18e0 /Assemble.c | |
parent | 3c7b4a25950aac37edfef59e7f9f0b57eab18d14 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] || |