diff options
author | Alasdair Kergon <agk@redhat.com> | 2009-08-03 18:44:54 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2009-08-03 18:44:54 +0000 |
commit | 252239bdac59a4fcfd7b9279a1df2c965e9cf0fa (patch) | |
tree | 8e73ef569cc819e5b35c466766eea7ed3944c653 /udev/95-dm-notify.rules | |
parent | f9e17e36aa776503616c916334433389b7d6c80f (diff) | |
download | lvm2-252239bdac59a4fcfd7b9279a1df2c965e9cf0fa.tar.gz lvm2-252239bdac59a4fcfd7b9279a1df2c965e9cf0fa.tar.xz lvm2-252239bdac59a4fcfd7b9279a1df2c965e9cf0fa.zip |
Add default udev rules.
Update dm-ioctl.h comments.
Diffstat (limited to 'udev/95-dm-notify.rules')
-rw-r--r-- | udev/95-dm-notify.rules | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/udev/95-dm-notify.rules b/udev/95-dm-notify.rules new file mode 100644 index 00000000..236878f7 --- /dev/null +++ b/udev/95-dm-notify.rules @@ -0,0 +1,16 @@ +# Udev rules for device-mapper devices. +# +# These rules are responsible for sending a notification to a process +# waiting for completion of udev rules. The process is identified by +# a cookie value sent within "change" and "remove" events (the cookie +# value is set before by that process for every action requested). +# Also, it sets default permissions for DM devices if not set already. + +SUBSYSTEM!="block", GOTO="dm_end" +KERNEL!="dm-[0-9]*", GOTO="dm_end" +ACTION!="change|remove", GOTO="dm_end" + +ACTION=="change", OWNER:="root", GROUP:="root", MODE:="600" +ENV{DM_COOKIE}=="?*", RUN+="/sbin/dmsetup udevcomplete $env{DM_COOKIE}" + +LABEL="dm_end" |