[lvm-devel][PATCH] Udev integration: udev rules 1/3
Peter Rajnoha
prajnoha at redhat.com
Thu Apr 9 10:37:47 UTC 2009
On 04/08/2009 02:34 PM, Peter Rajnoha wrote:
> ACTION=="change", TEST!="dm", IMPORT{PROGRAM}="/sbin/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o name"
...ehm, sorry, this should be:
ACTION=="change", TEST!="dm", IMPORT{PROGRAM}="/sbin/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o name,uuid"
Missed the "uuid" field at the end -- otherwise the notification would
come prematurely in DM udev rule and not in LVM. We have to check this
uuid for prefix, and when there's an "LVM-" prefix, the notification
is done by the other rule -- the LVM one. This way it's correct.
Peter
More information about the lvm-devel
mailing list