8c4232d3f9
Modify 0104-RHBZ-631009-deferred-remove.patch * add man page info Refresh 0112-RHBZ-1194917-add-config_dir-option.patch Refresh 0114-RHBZ-1196394-delayed-reintegration.patch Add 0118-UPBZ-1200738-update-eternus-config.patch * update default config Add 0119-RHBZ-1081397-save-alua-info.patch * make prioritizers save information between calls to speed them up. Add 0120-RHBZ-1043093-realloc-fix.patch * free old memory if realloc fails. Add 0121-RHBZ-1197234-rules-fix.patch * make sure kpartx runs after an DM_ACTIVATION event occurs. Add 0122-RHBZ-1212590-dont-use-var.patch * use /run instead of /var/run Add 0123-UPBZ-1166072-fix-path-offline.patch * Don't mark quiesce and transport-offline paths as offline Add 0124-RHBZ-1209275-retrigger-uevents.patch * Make multipathd retrigger uevents when paths haven't successfully had their udev_attribute environment variable set by udev and add "retrigger_ties" and "retrigger_delay" to control this Add 0125-RHBZ-1153832-kpartx-delete.patch * Delete all partition devices with -d (not just the ones in the partition table) Add 0126-RHBZ-1211383-alias-collision.patch * make multipathd use the old alias, if rename failed and add "new_bindings_in_boot" to determine if new bindings can be added to the bindings file in the initramfs Add 0127-RHBZ-1201030-use-blk-availability.patch * Make multipath use blk-availability.service Add 0128-RHBZ-1222123-mpathconf-allow.patch * Add mpathconf --allow for creating specialized config files. Add 0129-RHBZ-1241774-sun-partition-numbering.patch * Make kpartx correctly number sun partitions.
29 lines
1.4 KiB
Diff
29 lines
1.4 KiB
Diff
---
|
|
multipath/multipath.rules | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
Index: multipath-tools-130222/multipath/multipath.rules
|
|
===================================================================
|
|
--- multipath-tools-130222.orig/multipath/multipath.rules
|
|
+++ multipath-tools-130222/multipath/multipath.rules
|
|
@@ -21,6 +21,7 @@ ACTION!="change", GOTO="update_timestamp
|
|
IMPORT{db}="DM_MULTIPATH_TIMESTAMP"
|
|
IMPORT{db}="DM_MULTIPATH_DEVICE_PATH"
|
|
IMPORT{db}="DM_MULTIPATH_WIPE_PARTS"
|
|
+IMPORT{db}="DM_MULTIPATH_NEED_KPARTX"
|
|
# Check if the device is part of a multipath device. the -T option just keeps
|
|
# the old result if the timestamp hasn't changed.
|
|
PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -T $env{DM_MULTIPATH_TIMESTAMP}:$env{DM_MULTIPATH_DEVICE_PATH} -c $env{DEVNAME}", \
|
|
@@ -43,7 +44,10 @@ KERNEL!="dm-*", GOTO="end_mpath"
|
|
ENV{DM_UUID}=="mpath-?*|part[0-9]*-mpath-?*", OPTIONS+="link_priority=10"
|
|
ACTION!="change", GOTO="end_mpath"
|
|
ENV{DM_UUID}!="mpath-?*", GOTO="end_mpath"
|
|
+ENV{DM_ACTIVATION}=="1", ENV{DM_MULTIPATH_NEED_KPARTX}="1"
|
|
ENV{DM_SUSPENDED}=="1", GOTO="end_mpath"
|
|
ENV{DM_ACTION}=="PATH_FAILED", GOTO="end_mpath"
|
|
-ENV{DM_ACTIVATION}=="1", RUN+="$env{MPATH_SBIN_PATH}/kpartx -u $tempnode"
|
|
+ENV{DM_ACTIVATION}!="1", ENV{DM_MULTIPATH_NEED_KPARTX}!="1", GOTO="end_mpath"
|
|
+RUN+="$env{MPATH_SBIN_PATH}/kpartx -a $tempnode", \
|
|
+ ENV{DM_MULTIPATH_NEED_KPARTX}=""
|
|
LABEL="end_mpath"
|