[lvm-devel][PATCH] Udev integration: udev rules 3/3

Peter Rajnoha prajnoha at redhat.com
Wed Apr 8 12:41:14 UTC 2009


This is used for exceptional situations -- if the notification in the
rules before were not defined (so it's a simple fallback). This is
to prevent the hang of processes waiting for this notification.
Or, for example, for some reason, the user doesn't have LVM package
installed (and so he doesn't have LVM udev rules installed as well),
just the basic libdm/dmsetup and unfortunately creates a device with
the LVM (or any other subsystem) prefix. This could happen...

(this rule should be defined with the least priority)

Peter


# These rules are used to send any residual DM cookie notifications.

SUBSYSTEM!="block", GOTO="dm_end"
KERNEL!="dm-[0-9]*", GOTO="dm_end"
ACTION!="change|remove", GOTO="dm_end"

ENV{COOKIE}=="[0-9]*", RUN+="/sbin/dmsetup notify $env{COOKIE}", OPTIONS+="last_rule"

LABEL="dm_end"




More information about the lvm-devel mailing list