1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Wait for node creation before displaying debug info in dmsetup.

Readahead check needs to see created node - so wait till udev gets in sync.
This commit is contained in:
Zdenek Kabelac 2010-08-03 13:04:32 +00:00
parent f562bcedef
commit a7ca42cb22
2 changed files with 8 additions and 0 deletions

View 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.

View 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);