[stgt] PATCH: Make the check for LBA out of range for READ*/WRITE* better
ronnie sahlberg
ronniesahlberg at gmail.com
Sun Jun 3 02:29:10 CEST 2012
Tomo,
Please find attached a patch that fixes the range check for
read*/write* where the transfer length is 0 blocks.
For these commands, we still need to check the LBA that it is within a
valid range eventhough no actual data is transferred.
TGTD used to incorrectly only test for i/o beyond the end of the
device IFF the transfer length was non-zero.
But we actually should check this even for the case where transfer
length == zero.
This patch makes TGTD return a check condition and lba out of range
for such commands where the lba is beyond the end of the device.
regards
ronnie sahlberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SBC-READ-WRITE-Better-check-that-the-LBA-is-not-out-.patch.gz
Type: application/x-gzip
Size: 636 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120603/daf6ea4c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SBC-READ-WRITE-Better-check-that-the-LBA-is-not-out-.patch
Type: application/octet-stream
Size: 1145 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/stgt/attachments/20120603/daf6ea4c/attachment-0001.obj>
More information about the stgt
mailing list