[PATCH 6/8] nvme: handle invalid SCSI LBAs correctly

Christoph Hellwig hch at lst.de
Mon Apr 27 12:28:32 PDT 2015


On Mon, Apr 27, 2015 at 06:00:13PM +0000, Busch, Keith wrote:
> > Trap LBAs behind the end of the device and return the correct
> > sense code.
> 
> Should the driver be responsible to catch these kinds of errors
> on a passthrough IOCTL? Why not let the device deal with it?

Because drives don't seem to report the right error code, and thus
the translation isn't fully spec compliant.



More information about the Linux-nvme mailing list