libudev has a separate filter setting to skip uninitialized devices during enumeration. Signed-off-by: Hannes Reinecke <hare@xxxxxxx> --- libmultipath/discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index 2fa0907..2cf2566 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -148,6 +148,7 @@ path_discovery (vector pathvec, struct config * conf, int flag) return -ENOMEM; udev_enumerate_add_match_subsystem(udev_iter, "block"); + udev_enumerate_add_match_is_initialized(udev_iter); udev_enumerate_scan_devices(udev_iter); udev_list_entry_foreach(entry, -- 2.6.6 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel