Blame SOURCES/0069-RH-make-parse_vpd_pg83-match-scsi_id-output.patch

50e627
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
50e627
From: Benjamin Marzinski <bmarzins@redhat.com>
50e627
Date: Thu, 25 Mar 2021 13:05:10 -0500
50e627
Subject: [PATCH] RH: make parse_vpd_pg83 match scsi_id output
50e627
50e627
Red Hat sets ID_SERIAL based on the result of scsi_id, instead of using
50e627
the result of sg_inq and 55-scsi-sg3_id.rules. Make parse_vpd_pg83 match
50e627
that.
50e627
50e627
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
50e627
---
50e627
 libmultipath/discovery.c | 18 ++----------------
50e627
 1 file changed, 2 insertions(+), 16 deletions(-)
50e627
50e627
diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
50e627
index 5e988631..2404cb87 100644
50e627
--- a/libmultipath/discovery.c
50e627
+++ b/libmultipath/discovery.c
50e627
@@ -1079,12 +1079,9 @@ parse_vpd_pg83(const unsigned char *in, size_t in_len,
50e627
 				naa_prio = 7;
50e627
 				break;
50e627
 			case 2:
50e627
-				/* IEEE Extended: Prio 6 */
50e627
-				naa_prio = 6;
50e627
-				break;
50e627
 			case 3:
50e627
-				/* IEEE Locally assigned: Prio 1 */
50e627
-				naa_prio = 1;
50e627
+				/* IEEE Extended or Locally assigned: Prio 6 */
50e627
+				naa_prio = 6;
50e627
 				break;
50e627
 			default:
50e627
 				/* Default: no priority */
50e627
@@ -1103,17 +1100,6 @@ parse_vpd_pg83(const unsigned char *in, size_t in_len,
50e627
 				vpd = d;
50e627
 			}
50e627
 			break;
50e627
-		case 0x8:
50e627
-			/* SCSI Name: Prio 3 */
50e627
-			if (memcmp(d + 4, "eui.", 4) &&
50e627
-			    memcmp(d + 4, "naa.", 4) &&
50e627
-			    memcmp(d + 4, "iqn.", 4))
50e627
-				break;
50e627
-			if (prio < 3) {
50e627
-				prio = 3;
50e627
-				vpd = d;
50e627
-			}
50e627
-			break;
50e627
 		case 0x1:
50e627
 			/* T-10 Vendor ID: Prio 2 */
50e627
 			if (prio < 2) {
50e627
-- 
50e627
2.17.2
50e627