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