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:
parent
f562bcedef
commit
a7ca42cb22
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user