[Drbd-dev] [PATCH] udev rules file: skip if invoked for a subsystem other than block
Florian Haas
florian at hastexo.com
Tue Nov 29 20:04:44 CET 2011
---
scripts/drbd.rules | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/scripts/drbd.rules b/scripts/drbd.rules
index 080635f..18708b7 100644
--- a/scripts/drbd.rules
+++ b/scripts/drbd.rules
@@ -1,5 +1,7 @@
# This file contains the rules to create named DRBD devices.
+SUBSYSTEM!="block", GOTO="drbd_end"
+
# DO NOT WRAP THIS LINE
#
# old udev does not understand some of it,
@@ -13,3 +15,5 @@
#
# DO NOT WRAP THIS LINE
KERNEL=="drbd*", IMPORT{program}="/sbin/drbdadm sh-udev minor-%m", NAME="$env{DEVICE}", SYMLINK="drbd/by-res/$env{RESOURCE} drbd/by-disk/$env{DISK}"
+
+LABEL="drbd_end"
--
1.7.5.4
More information about the drbd-dev
mailing list