summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2010-07-07 11:22:46 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2010-07-07 11:22:46 +0000
commit02adb0cd9de8227095c685b1e0b9f92c5de4565f (patch)
tree99e252bbe3d91303268560b10498110f647c109c /udev
parent7f7af46862ae01baef48cd172cf9c2c8bb9551e5 (diff)
downloadlvm2-02adb0cd9de8227095c685b1e0b9f92c5de4565f.tar.gz
Use "nowatch" udev rule for known inappropriate devices.
For now, this is just a precaution. Normally, all the other (non-dm) rules should check DM_UDEV_DISABLE_OTHER_RULES_FLAG and therefore avoid setting any inotify watches as well. But let's make sure. Support for final assignment of the "nowatch" rule (the use of ":=") will appear in next udev release, v160. This should also work in previous udev versions but the setting won't be sealed so any further OPTIONS="watch" will always prevail there. We may want to add more specific "nowatch" rules later if needed.
Diffstat (limited to 'udev')
-rw-r--r--udev/10-dm.rules.in1
-rw-r--r--udev/11-dm-lvm.rules1
2 files changed, 2 insertions, 0 deletions
diff --git a/udev/10-dm.rules.in b/udev/10-dm.rules.in
index b3e2335f8..5d2a22b41 100644
--- a/udev/10-dm.rules.in
+++ b/udev/10-dm.rules.in
@@ -119,5 +119,6 @@ LABEL="dm_disable"
ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}="1"
ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1"
+OPTIONS:="nowatch"
LABEL="dm_end"
diff --git a/udev/11-dm-lvm.rules b/udev/11-dm-lvm.rules
index 2a4c7efdc..824446489 100644
--- a/udev/11-dm-lvm.rules
+++ b/udev/11-dm-lvm.rules
@@ -32,5 +32,6 @@ ENV{DM_VG_NAME}=="?*", ENV{DM_LV_NAME}=="?*", SYMLINK+="$env{DM_VG_NAME}/$env{DM
LABEL="lvm_disable"
ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1"
+OPTIONS:="nowatch"
LABEL="lvm_end"