mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
device_id: handle scsi_debug wwid
Ignore the wwid value reported by scsi_debug devices that begin "t10.Linux scsi_debug". The devname will be used as the device id. (cherry picked from commit 1139a05939f85bd86a756b451a8f194bc7a72a2c) (cherry picked from commit 013303da9deb39c0518a9c8bdfb0237ef359747e)
This commit is contained in:
parent
8bfe69ee01
commit
02eaf10114
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user