Blame SOURCES/lvm2-2_03_13-device_id-handle-scsi_debug-wwid.patch

ffcdab
 lib/device/device_id.c | 4 ++++
ffcdab
 1 file changed, 4 insertions(+)
ffcdab
ffcdab
diff --git a/lib/device/device_id.c b/lib/device/device_id.c
ffcdab
index f158e4f..9cc82f1 100644
ffcdab
--- a/lib/device/device_id.c
ffcdab
+++ b/lib/device/device_id.c
ffcdab
@@ -308,6 +308,10 @@ const char *device_id_system_read(struct cmd_context *cmd, struct device *dev, u
ffcdab
 
ffcdab
 		if (!sysbuf[0])
ffcdab
 			_read_sys_block(cmd, dev, "wwid", sysbuf, sizeof(sysbuf));
ffcdab
+
ffcdab
+		/* scsi_debug wwid begins "t10.Linux   scsi_debug ..." */
ffcdab
+		if (strstr(sysbuf, "scsi_debug"))
ffcdab
+			sysbuf[0] = '\0';
ffcdab
 	}
ffcdab
 
ffcdab
 	else if (idtype == DEV_ID_TYPE_SYS_SERIAL)