]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: ignore devices= if container= is present.
authorNeilBrown <neilb@suse.de>
Tue, 2 Jul 2013 01:07:38 +0000 (11:07 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 2 Jul 2013 01:14:09 +0000 (11:14 +1000)
commitc39b2e633fd6eb82a8a8e822ef01339806b05bfa
treeb258a9b32710fe9545220971312b5d2c137f68bf
parenteb2306f8411070bc7bcd46ad8fee0f02c826380a
Assemble: ignore devices= if container= is present.

If "container=" is present, then we are going to assemble from the
given container where that container is made of those devices or not.
So in this case the "devices=" is purely documentation and is best
ignored.

As part of this, move the test on the "container=" value when that
start with "/" up before the device is opened.  There sooner we test
things, the better.

Reported-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c