[Pkg-utopia-maintainers] Bug#545032: Bug#545032: Bug#545032: devicekit-disks - Handles add actions of dm devices

Michael Biebl biebl at debian.org
Wed Sep 23 15:06:00 UTC 2009


Bastian Blank wrote:
> On Wed, Sep 23, 2009 at 04:36:54PM +0200, Michael Biebl wrote:
>> Right, but not with this severity. So downgrading to important.
> 
> Sure with this. You break dmsetup. Anyway, will add a conflict.

Adding a conflict is certainly not the way I want it to go, as dk-disks is meant
to work with dm devices.

Where exactly in the rules does it overwrite data setup by device mapper?
Which part exactly in the rules file does break other apps?
What do you suggest instead?

FWIW, this is the relevant part of the current (devicekit-disk 004-1) rules file:

##############################################################################################################

# pick up device-mapper data; this really should be done by rules installed
# by the device-mapper package
#

KERNEL!="dm-*", GOTO="device_mapper_end"
ACTION!="add|change", GOTO="device_mapper_end"

IMPORT{program}="devkit-disks-dm-export %M %m"
ENV{DKD_DM_NAME}!="?*", GOTO="device_mapper_end"

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

ENV{DKD_DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"
ENV{DKD_DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"

IMPORT{program}="vol_id --export $tempnode"
OPTIONS="link_priority=-100"
ENV{DKD_DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS="link_priority=-90"
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*",
SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*",
SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"

LABEL="device_mapper_end"

##############################################################################################################


The next upload of dk-disks (devicekit-disk 007-1) will contain

##############################################################################################################

# pick up device-mapper data; this REALLY should be done by rules installed
# by the device-mapper package
#
KERNEL!="dm-*", GOTO="device_mapper_end"
ACTION!="add|change", GOTO="device_mapper_end"

IMPORT{program}="devkit-disks-dm-export %M %m"
ENV{DKD_DM_NAME}!="?*", GOTO="device_mapper_end"

ENV{DKD_DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"
ENV{DKD_DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"

# avoid probing if it has already been done earlier
#
ENV{ID_FS_USAGE}!="", GOTO="device_mapper_end"
IMPORT{program}="/sbin/blkid -o udev -p $tempnode"

LABEL="device_mapper_end"

##############################################################################################################


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20090923/7e74fd1d/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list