]> sourceware.org Git - lvm2.git/commit - WHATS_NEW_DM
Add support for ioctl's DM_UEVENT_GENERATED_FLAG.
authorPeter Rajnoha <prajnoha@redhat.com>
Tue, 23 Mar 2010 14:38:37 +0000 (14:38 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 23 Mar 2010 14:38:37 +0000 (14:38 +0000)
commitac3691f70e9ab0638820384aa03ed9913b79772b
treecd32d4dbe0b563569a6c821c3342bf3f1cd9452b
parent8b373275a25da1269369e605d9c26ff2414305fe
Add support for ioctl's DM_UEVENT_GENERATED_FLAG.

We need to know whether we should wait for any uevent or not when
using udev_sync. A kernel patch was posted recently that changed the
way uevents are sent on dm device resume - it is sent only if the
device has been suspended before. There's also a new DM_UEVENT_GENERATED_FLAG
in the ioctl to notify userspace whether the event was generated.

If the uevent was not generated (e.g. the situation where the device is
*not* suspended and we call a resume), we just call dm_udev_complete
explicitly from within libdevmapper itself to prevent infinite waiting
while trying to synchronise with udev processing.
WHATS_NEW_DM
libdm/ioctl/libdm-iface.c
libdm/misc/dm-ioctl.h
This page took 0.028079 seconds and 5 git commands to generate.