mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
scsi_id: Fixup prefix for pre-SPC inquiry reply
The prefix for EMC Symmetrix pre-SPC VPD inquiry reply is always SCSI_ID_NAA, so we need to hardcode it to avoid false values here. Signed-off-by: Hannes Reinecke <hare@suse.com>
This commit is contained in:
parent
14c1abccf0
commit
c0373eb019
@ -578,7 +578,7 @@ static int check_fill_0x83_prespc3(struct udev *udev,
|
||||
{
|
||||
int i, j;
|
||||
|
||||
serial[0] = hex_str[id_search->id_type];
|
||||
serial[0] = hex_str[SCSI_ID_NAA];
|
||||
/* serial has been memset to zero before */
|
||||
j = strlen(serial); /* j = 1; */
|
||||
|
||||
@ -726,7 +726,7 @@ static int do_scsi_page83_prespc3_inquiry(struct udev *udev,
|
||||
if (page_83[6] == 0)
|
||||
return 2;
|
||||
|
||||
serial[0] = hex_str[id_search_list[0].id_type];
|
||||
serial[0] = hex_str[SCSI_ID_NAA];
|
||||
/*
|
||||
* The first four bytes contain data, not a descriptor.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user