Gentoo Archives: gentoo-commits

From: "Matthias Schwarzott (zzam)" <zzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/lvm2/files: 64-device-mapper.rules-2.02.56-r3
Date: Tue, 05 Jan 2010 14:30:35
Message-Id: E1NSAQb-0004wA-No@stork.gentoo.org
1 zzam 10/01/05 14:30:33
2
3 Added: 64-device-mapper.rules-2.02.56-r3
4 Log:
5 Fix udev rule for mapper/control device, Bug #295186.
6 (Portage version: 2.2_rc61/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 sys-fs/lvm2/files/64-device-mapper.rules-2.02.56-r3
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/64-device-mapper.rules-2.02.56-r3?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/files/64-device-mapper.rules-2.02.56-r3?rev=1.1&content-type=text/plain
13
14 Index: 64-device-mapper.rules-2.02.56-r3
15 ===================================================================
16 # do not edit this file, it will be overwritten on update
17
18 KERNEL=="device-mapper", NAME="mapper/control"
19
20 KERNEL!="dm-*", GOTO="device_mapper_end"
21 ACTION!="add|change", GOTO="device_mapper_end"
22
23 IMPORT{program}="/sbin/dmsetup info --export -j%M -m%m"
24 ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
25 NAME="mapper/$env{DM_NAME}", SYMLINK+="%k"
26
27 SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}", OPTIONS+="string_escape=replace"
28 ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}", OPTIONS+="string_escape=replace"
29
30 ENV{DM_SUSPENDED}=="1", GOTO="device_mapper_end"
31 ENV{DM_EXISTS}=="0", GOTO="device_mapper_end"
32 ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
33
34 IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
35 OPTIONS+="link_priority=-100"
36 OPTIONS+="watch"
37 ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90"
38 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
39 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
40
41 LABEL="device_mapper_end"