[lvm-devel] [PATCH 4/9] Udev integration: add cookie support for dmsetup

Peter Rajnoha prajnoha at redhat.com
Tue May 26 12:17:27 UTC 2009


...Milan has added some lines to pvmove test recently. But it fails
with udev patches -- it waits for notification which will never come.
We can't wait wait for notification when dmsetup's "--notable"
is set while creating devices -- there's no uevent for this to unlock
the wait :)

So this should be applied on top of the patch "4/9 add cookie support
for dmsetup":


diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 8db38b0..be094c0 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -572,6 +572,9 @@ static int _create(int argc, char **argv, void *data __attribute((unused)))
 				    _read_ahead_flags))
 		goto out;
 
+	if (_switches[NOTABLE_ARG])
+		dm_udev_notif_disable();
+
 	if (!dm_udev_notif_sem_open(&cookie))
 		goto out;
 




More information about the lvm-devel mailing list