On Mon, 2026-04-13 at 18:38 -0400, Benjamin Marzinski wrote: > Some older SCSI devices return a SCSI-2 style vpd page 0x83, instead > of > a SPC-2/3 format one. The SCSI-2 page 83 format returns an IEEE WWN > in > binary encoded hexi-decimal in the 16 bytes following the initial > 4-byte page 83 reply header. > > Check the 7th byte of the vpd page 83 buffer to determine whether > this > is a SCSI-2 or SPC-2/3 confomant one. Byte 7 is the 3rd byte of first > Identification descriptor in a SPC-2/3 confromant vpd page 83. This > is a > reserved field, and is guaranteed to be 0. If it is not zero, then it > is > likely the 3rd byte of a SCSI-2 Identifier (The first 3 bytes of the > ID > are the Organizationally Unique Identifier). Both the sg_inq and > scsi_id > commands handle vpd page 83 this way. To make sure that the WWID > which > multipath reads directly from the device matches, it should handle > this > format as well. > > Signed-off-by: Benjamin Marzinski <[email protected]>
Reviewed-by: Martin Wilck <[email protected]>
