mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +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:
parent
56081fe97b
commit
0a89c2307e
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.54 -
|
Version 1.02.54 -
|
||||||
================================
|
================================
|
||||||
|
Wait for node creation before displaying debug info in dmsetup.
|
||||||
Fix return status 0 for "dmsetup info -c -o help".
|
Fix return status 0 for "dmsetup info -c -o help".
|
||||||
Add check for kernel semaphore support and disable udev_sync if not available.
|
Add check for kernel semaphore support and disable udev_sync if not available.
|
||||||
|
|
||||||
|
@ -633,9 +633,16 @@ static int _create(int argc, char **argv, void *data __attribute__((unused)))
|
|||||||
|
|
||||||
r = 1;
|
r = 1;
|
||||||
|
|
||||||
|
if (!_udev_cookie)
|
||||||
|
(void) dm_udev_wait(cookie);
|
||||||
|
|
||||||
if (_switches[VERBOSE_ARG])
|
if (_switches[VERBOSE_ARG])
|
||||||
r = _display_info(dmt);
|
r = _display_info(dmt);
|
||||||
|
|
||||||
|
dm_task_destroy(dmt);
|
||||||
|
|
||||||
|
return r;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (!_udev_cookie)
|
if (!_udev_cookie)
|
||||||
(void) dm_udev_wait(cookie);
|
(void) dm_udev_wait(cookie);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user