]> sourceware.org Git - lvm2.git/commitdiff
Wait for node creation before displaying debug info in dmsetup.
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 3 Aug 2010 13:04:32 +0000 (13:04 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 3 Aug 2010 13:04:32 +0000 (13:04 +0000)
Readahead check needs to see created node - so wait till udev gets in sync.

WHATS_NEW_DM
tools/dmsetup.c

index 980899ef5d7d69d4b0ae9717f9658b1676d1bb08..4104eae2d47ef46bf134c99e590df121cf2eef40 100644 (file)
@@ -1,5 +1,6 @@
 Version 1.02.54 - 
 ================================
+  Wait for node creation before displaying debug info in dmsetup.
   Fix return status 0 for "dmsetup info -c -o help".
   Add check for kernel semaphore support and disable udev_sync if not available.
 
index cca7424b137fc6374aa5d0a7152b873b9b8b8a59..885566709a9997d3ac49fbc90a035f72bcc74066 100644 (file)
@@ -633,9 +633,16 @@ static int _create(int argc, char **argv, void *data __attribute__((unused)))
 
        r = 1;
 
+       if (!_udev_cookie)
+               (void) dm_udev_wait(cookie);
+
        if (_switches[VERBOSE_ARG])
                r = _display_info(dmt);
 
+       dm_task_destroy(dmt);
+
+       return r;
+
       out:
        if (!_udev_cookie)
                (void) dm_udev_wait(cookie);
This page took 0.036737 seconds and 5 git commands to generate.