[PATCH] nvme-scsi: Use correct byte ordering for eui64 in Dev ID VPD

Christoph Hellwig hch at infradead.org
Wed Apr 26 00:22:48 PDT 2017


On Tue, Apr 25, 2017 at 02:18:09PM -0600, Jon Derrick wrote:
> NVME specifies an EUI64/NGUID in little-endian format, while SCSI
> specifies that the Device Identification VPD use big-endian for EUI
> formats. The current code copies this bytestream directly from the
> Identification Namespace page, meaning we just need to reverse the
> bytestream when passing it on to the VPD.

This will break existing setups that rely on VPD 0x83 for device
identification (which I think includes older SuSE distros).

And once you change the setup anyway please stop using this buggy
SCSI emulation.



More information about the Linux-nvme mailing list