[stgt] [PATCH 1/1] SBC READ: return correct key/ascq when reading beyond end-of-lun

ronnie sahlberg ronniesahlberg at gmail.com
Mon Apr 4 09:48:20 CEST 2011


List, Tomo

Please find attached a patch to TGTD that verifies SCSI READ* for 1 or
more blocks do not pass beyond the end of the device.
If too long read is encoutnered, return the correct sense with
key:illegal request   and ascq:lba out of range


regards
ronnie sahlberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SBC-READ-When-reading-1-or-more-blocks-of-data-verif.patch.gz
Type: application/x-gzip
Size: 863 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20110404/520816d2/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SBC-READ-When-reading-1-or-more-blocks-of-data-verif.patch
Type: text/x-diff
Size: 1647 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20110404/520816d2/attachment-0001.patch>


More information about the stgt mailing list