]> sourceware.org Git - lvm2.git/commit
Set DM_UDEV_DISABLE_OTHER_RULES_FLAG for suspended DM devices in udev rules.
authorPeter Rajnoha <prajnoha@redhat.com>
Fri, 28 Jan 2011 11:41:51 +0000 (11:41 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Fri, 28 Jan 2011 11:41:51 +0000 (11:41 +0000)
commit2fef22fa85d43296e0701fa362b6edd1a7834510
tree6a60a7e3a43721486ad04092d72ddecb99f4657c
parent8440981845765c916febec9f42dbaa3315dceb0e
Set DM_UDEV_DISABLE_OTHER_RULES_FLAG for suspended DM devices in udev rules.

This is to avoid any scanning and processing of DM devices while they are in
suspended state (e.g. a rename while the device is suspended - a CHANGE event
is generated!). Otherwise, any scanning in the rules could end up with locking
the calling process until the device is resumed and so we don't receive a
notification about udev rules completion until then (and that effectively
locks out the process awaiting the notification!).

However, we still keep 'disk' and any 'subsystem' related udev rules running.
We trust these and these should check themselves whether a device is suspended
or not, not trying to run any scanning if it is.
WHATS_NEW_DM
udev/10-dm.rules.in
This page took 0.035593 seconds and 5 git commands to generate.