Bug#384166: by-* entries for /dev/mapper bock devices
Marco d'Itri
md at Linux.IT
Tue Aug 22 11:55:35 UTC 2006
reassign 384166 dmsetup
thanks
On Aug 22, martin f krafft <madduck at debian.org> wrote:
> It would be sweet if device-mapper block devices would also show up
> under /dev/disk/by-* or a similar hierarchy.
Indeed it would be, but it's not possible yet since the kernel is not
sending the right kind of uevent:
https://www.redhat.com/archives/dm-devel/2006-August/msg00040.html
The dmsetup package should install this rules file and link it at z47:
KERNEL!="dm-*", GOTO="device_mapper_end"
ACTION!="change", GOTO="device_mapper_end"
# do not run vol_id if it's a snaphost or dmsetup failed
PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
IMPORT{program}="vol_id --export $tempnode"
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", \
SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", \
SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
LABEL="device_mapper_end"
--
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20060822/57c8402d/attachment.pgp
More information about the pkg-lvm-maintainers
mailing list