Blame SOURCES/0166-RHBZ-1323429-dont-allow-new-wwid.patch

4728c8
---
4728c8
 libmultipath/dmparser.c |    9 +++++++++
4728c8
 1 file changed, 9 insertions(+)
4728c8
4728c8
Index: multipath-tools-130222/libmultipath/dmparser.c
4728c8
===================================================================
4728c8
--- multipath-tools-130222.orig/libmultipath/dmparser.c
4728c8
+++ multipath-tools-130222/libmultipath/dmparser.c
4728c8
@@ -360,6 +360,15 @@ disassemble_map (vector pathvec, char *
4728c8
 			else if (!strlen(pp->wwid))
4728c8
 				strncpy(pp->wwid, mpp->wwid, WWID_SIZE);
4728c8
 
4728c8
+			/*
4728c8
+			 * Something went wrong. Likely the user changed the
4728c8
+			 * path uid_attribute after creating a device
4728c8
+			 */
4728c8
+			else if (strcmp(pp->wwid, mpp->wwid) != 0) {
4728c8
+				condlog(0, "%s: path wwid appears to have changed. Using map wwid.\n", pp->dev_t);
4728c8
+				strncpy(pp->wwid, mpp->wwid, WWID_SIZE);
4728c8
+			}
4728c8
+
4728c8
 			pgp->id ^= (long)pp;
4728c8
 			pp->pgindex = i + 1;
4728c8