From 02adb0cd9de8227095c685b1e0b9f92c5de4565f Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 7 Jul 2010 11:22:46 +0000 Subject: [PATCH] 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. --- WHATS_NEW_DM | 1 + udev/10-dm.rules.in | 1 + udev/11-dm-lvm.rules | 1 + 3 files changed, 3 insertions(+) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index a4d97bf07..520ef1acb 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.53 - =============================== + Use "nowatch" udev rule for inappropriate devices. Version 1.02.52 - 6th July 2010 =============================== 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" -- 2.43.5