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

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