Remove the test for accessing 0blocks (transfer length==0) at the end of the device since they were invalid. SBC says that : If the LBA plus the transfer length exceeds the capacity of the medium, then the device server shall terminate the command with CHECK CONDITION status with the sense key set to ILLEGAL REQUEST and the additional sense code set to LOGICAL BLOCK ADDRESS OUT OF RANGE. This means that if TL==0 then a LBA that is the first LBA beyond the end of device is actually valid. Improve output for error conditions and harminize all tests
6.3 KiB
6.3 KiB