Bug#455746: udev support

Marco d'Itri md at Linux.IT
Fri Jul 11 00:43:02 UTC 2008


I am attaching an updated and cleaned-up file.
Please add it ASAP to the package because many users have complained
about this (usually to me) in the last year.

-- 
ciao,
Marco
-------------- next part --------------
KERNEL!="dm-*",					GOTO="device_mapper_end"
ACTION!="add|change",				GOTO="device_mapper_end"

IMPORT{program}="/sbin/dmsetup export -j $major -m $minor"
ENV{DM_NAME}!="?*",				GOTO="device_mapper_end"

# these are temporary devices created by cryptsetup, we want to ignore them
# and also hide them from HAL
ENV{DM_NAME}=="temporary-cryptsetup-*",		OPTIONS="ignore_device"

SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
ENV{DM_UUID}=="?*", \
	SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"

ENV{DM_STATE}=="SUSPENDED",			GOTO="device_mapper_end"
# should become ENV{DM_TARGET_TYPES}=="|*error*" after #486780 is fixed
ENV{DM_TARGET_TYPES}=="*error*",		GOTO="device_mapper_end"

IMPORT{program}="vol_id --export $tempnode"

OPTIONS+="link_priority=-100"
ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90"

ENV{ID_FS_UUID_ENC}=="?*",	ENV{ID_FS_USAGE}=="filesystem|other|crypto", \
	SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
ENV{ID_FS_LABEL_ENC}=="?*",	ENV{ID_FS_USAGE}=="filesystem|other", \
	SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"

LABEL="device_mapper_end"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20080711/30d07ce0/attachment.pgp 


More information about the pkg-lvm-maintainers mailing list