]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.c
misc_scan: don't trust the mapping file too much for device names.
authorNeilBrown <neilb@suse.de>
Mon, 13 May 2013 02:56:38 +0000 (12:56 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 13 May 2013 02:56:38 +0000 (12:56 +1000)
commit743eaf8b70501c64c58ad56b435873bf788c878b
treec0cf2392d54bfe8dc4e9d30a9e0f3ebe44fad335
parent6b63c1a4570412c06a40ffa57d35577816259a94
misc_scan: don't trust the mapping file too much for device names.

misc_scan assumes that any device name found in the 'mapping' file
is usable.  Usually it is but sometimes not, such as for inactive
devices.
Depending on it isn't really robust, when a name is found, check that
it exists. If not, fall back on map_dev.

This will allow "--detail --scan" to notice inactive devices.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.c