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