TESTS: Abort READ6 test if lun is bigger than what READ6 can address

This commit is contained in:
Ronnie Sahlberg
2013-09-02 12:19:24 -07:00
parent 2627d371fd
commit 45a3752d16

View File

@@ -46,6 +46,11 @@ test_read6_simple(void)
logging(LOG_VERBOSE, "Test READ6 of 1-255 blocks at the end of the LUN");
if (num_blocks >= 0x1fffff) {
CU_PASS("LUN is too big for read-at-eol tests with READ6. Skipping test.\n");
return;
}
for (i = 1; i <= 255; i++) {
ret = read6(iscsic, tgt_lun, num_blocks - i,
i * block_size, block_size, NULL);