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