]> sourceware.org Git - lvm2.git/commitdiff
Use "nowatch" udev rule for known inappropriate devices.
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 7 Jul 2010 11:22:46 +0000 (11:22 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 7 Jul 2010 11:22:46 +0000 (11:22 +0000)
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.

WHATS_NEW_DM
udev/10-dm.rules.in
udev/11-dm-lvm.rules

index a4d97bf0735eb64ab5fb8481ea83858f19ecadec..520ef1acb079e7d8c69e7407e9535c594c6e1fad 100644 (file)
@@ -1,5 +1,6 @@
 Version 1.02.53 -
 ===============================
+  Use "nowatch" udev rule for inappropriate devices.
 
 Version 1.02.52 - 6th July 2010
 ===============================
index b3e2335f803553dbaa4b68041f237494fdde7532..5d2a22b412d08867f893312d4da379a8745430d9 100644 (file)
@@ -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"
index 2a4c7efdcecdd70b29fd4c315d06ed673b600f88..82444648915d3719eb730945dd91376da4721f59 100644 (file)
@@ -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"
This page took 0.035704 seconds and 5 git commands to generate.