Rework multipath device detection
authorHannes Reinecke <hare@suse.de>
Fri, 14 Mar 2008 16:00:00 +0000 (17:00 +0100)
committerMilan Vancura <mvancura@suse.cz>
Mon, 16 Mar 2009 15:30:25 +0000 (16:30 +0100)
commit581b51deccde35ad8dd9a159f03a2635573e523c
tree760331a447443444e4779fcf138fe1a5f8e284a5
parentb748a25f5dc03430f11a9e8042995c1127609493
Rework multipath device detection

For (or any fc HBA, really) we cannot be sure that all devices
are discovered after the module is loaded. So while we're
already waiting for 'normal' block devices, we just run
multipath once and hope that all devices are there.
Not good.
So better rework the udev_wait_for_devices loop to check the
major number of the found device and call multipath if it's
not a device-mapper device. And only terminate the loop
if the device is in fact a device-mapper device.

References: 369468
Signed-off-by: Hannes Reinecke <hare@suse.de>
mkinitrd
mkinitrd.changes