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

Busch, Keith keith.busch at intel.com
Mon Apr 27 11:00:13 PDT 2015


> 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?

Yeah, I have a drive with accessible LBAs outside the reported
capacity (queue the criticism). I wouldn't use the SCSI
translation layer for that device anyway, so this isn't a NAK.

I'm all for the rest of the series; looks good to me!



More information about the Linux-nvme mailing list