Question on NVMe SCSI Translation Ref 1.5
Christoph Hellwig
hch at infradead.org
Fri Nov 20 10:32:06 PST 2015
Hi Jeffrey,
SG_IO is sent to a device node. For actualy SCSI devices you'll
get the LUN from sdev->lun. For NVMe there obviously aren't any LUNs,
so you'll have to come up with a tranlation. The current Linux driver
translated namespaces 1 to LUN 0 and so on. In general sending a
REPORT LUNS to a NVMe device node does not seem very useful, and I have
no idea why it even was specified. Then again the whole SCSI
translation layer concept seems incredbile braindead and I think we
should at least optionally remove it from the NVMe driver.
More information about the Linux-nvme
mailing list