40 lines
2.2 KiB
Diff
40 lines
2.2 KiB
Diff
|
Index: LVM2.2.02.84/udev/10-dm.rules.in
|
||
|
===================================================================
|
||
|
--- LVM2.2.02.84.orig/udev/10-dm.rules.in 2011-01-28 19:41:52.000000000 +0800
|
||
|
+++ LVM2.2.02.84/udev/10-dm.rules.in 2011-02-15 14:50:19.000000000 +0800
|
||
|
@@ -94,6 +94,10 @@
|
||
|
TEST!="dm", IMPORT{program}="$env{DM_SBIN_PATH}/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o name,uuid,suspended"
|
||
|
ENV{DM_SUSPENDED}!="?*", IMPORT{program}="$env{DM_SBIN_PATH}/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o suspended"
|
||
|
|
||
|
+# dmsetup export is a SUSE extension to dmsetup
|
||
|
+# it is required by some other udev rules in SUSE distro.
|
||
|
+IMPORT{program}="$env{DM_SBIN_PATH}/dmsetup export -j %M -m %m"
|
||
|
+
|
||
|
# dmsetup tool provides suspended state information in textual
|
||
|
# form with values "Suspended"/"Active". We translate it to
|
||
|
# 0/1 respectively to be consistent with sysfs values.
|
||
|
Index: LVM2.2.02.84/udev/13-dm-disk.rules
|
||
|
===================================================================
|
||
|
--- LVM2.2.02.84.orig/udev/13-dm-disk.rules 2009-11-13 20:33:27.000000000 +0800
|
||
|
+++ LVM2.2.02.84/udev/13-dm-disk.rules 2011-02-15 14:51:31.000000000 +0800
|
||
|
@@ -14,13 +14,16 @@
|
||
|
ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="dm_end"
|
||
|
ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=="1", GOTO="dm_end"
|
||
|
|
||
|
-SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
|
||
|
-ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
|
||
|
+SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}", OPTIONS+="string_escape=replace"
|
||
|
+ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}", OPTIONS+="string_escape=replace"
|
||
|
|
||
|
ENV{DM_SUSPENDED}=="1", GOTO="dm_end"
|
||
|
+ENV{DM_TARGET_TYPES}=="|*error*", GOTO="dm_end"
|
||
|
|
||
|
IMPORT{program}="$env{DM_SBIN_PATH}/blkid -o udev -p $tempnode"
|
||
|
-ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100"
|
||
|
+ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS+="link_priority=-100"
|
||
|
+OPTIONS+="watch"
|
||
|
+ENV{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}"
|
||
|
|