Blame SOURCES/0067-RHBZ-1022899-fix-udev-partition-handling.patch

e41771
---
e41771
 multipath/multipath.rules |    8 +++++++-
e41771
 1 file changed, 7 insertions(+), 1 deletion(-)
e41771
e41771
Index: multipath-tools-130222/multipath/multipath.rules
e41771
===================================================================
e41771
--- multipath-tools-130222.orig/multipath/multipath.rules
e41771
+++ multipath-tools-130222/multipath/multipath.rules
e41771
@@ -13,12 +13,13 @@ ACTION=="add", ENV{DM_MULTIPATH_DEVICE_P
e41771
 	PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -c $tempnode", \
e41771
 	ENV{DM_MULTIPATH_DEVICE_PATH}="1", ENV{ID_FS_TYPE}="mpath_member"
e41771
 
e41771
-ENV{DM_MULTIPATH_DEVICE_PATH}=="1", \
e41771
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{DM_MULTIPATH_WIPE_PARTS}="1", \
e41771
 	RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}"
e41771
 
e41771
 ACTION!="change", GOTO="update_timestamp"
e41771
 IMPORT{db}="DM_MULTIPATH_TIMESTAMP"
e41771
 IMPORT{db}="DM_MULTIPATH_DEVICE_PATH"
e41771
+IMPORT{db}="DM_MULTIPATH_WIPE_PARTS"
e41771
 # Check if the device is part of a multipath device. the -T option just keeps
e41771
 # the old result if the timestamp hasn't changed.
e41771
 PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -T $env{DM_MULTIPATH_TIMESTAMP}:$env{DM_MULTIPATH_DEVICE_PATH} -c $env{DEVNAME}", \
e41771
@@ -27,8 +28,13 @@ PROGRAM=="$env{MPATH_SBIN_PATH}/multipat
e41771
 
e41771
 # If the device isn't part of a multipath device, clear this
e41771
 ENV{DM_MULTIPATH_DEVICE_PATH}=""
e41771
+ENV{DM_MULTIPATH_WIPE_PARTS}=""
e41771
 
e41771
 LABEL="update_timestamp"
e41771
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{DM_MULTIPATH_WIPE_PARTS}!="1", \
e41771
+	ENV{DM_MULTIPATH_WIPE_PARTS}="1", \
e41771
+	RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}"
e41771
+
e41771
 IMPORT{file}="/run/multipathd/timestamp"
e41771
 
e41771
 LABEL="check_kpartx"