https://bugzilla.novell.com/show_bug.cgi?id=737198
https://bugzilla.novell.com/show_bug.cgi?id=737198#c6
--- Comment #6 from Yarny Yarny 2012-01-05 10:37:48 UTC ---
Hi Guangliang Zhao,
with udevadm as given in your comment 5, I couldn't reproduce the problem.
What stumps me a bit is that udev-settle is also needed without mkswap (see my
initial report). Certainly lvcreate causes some udev event when
/dev/testvg/testlv is made active, but wouldn't it be natural for lvcreate to
wait for udev to finish whatever it is doing before exiting? As a user of
lvcreate I expect the device to be ready (e.g. ready for deactivation) when
lvcreate returns. And the same goes for mkswap: From a user-perspective,
mkswap just writes some bytes to the swap device, so when it uses the
device-mapper internally, it should also wait for all udev-events to be
processed before returning.
Yet I'm far from being an expert in udev things, so if there are other reasons
why mkswap and lvcreate cannot or should not wait for udev, I'm sorry for
inconveniences and feel free to close this bug as INVALID.
Thanks and best wishes,
Yarny
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.