Merge pull request #134 from plieven/fix_inquiry

test-tool: fix Inquiry.AllocLength
This commit is contained in:
Ronnie Sahlberg
2014-08-21 18:50:12 -07:00

View File

@@ -35,8 +35,8 @@ test_inquiry_alloc_length(void)
logging(LOG_VERBOSE, "Test of the INQUIRY allocation length");
logging(LOG_VERBOSE, "Verify we can read standard INQUIRY page with alloc length from 0-255");
for (i = 0; i < 256 ; i++) {
logging(LOG_VERBOSE, "Verify we can read standard INQUIRY page with alloc length from 5-255");
for (i = 5; i < 256 ; i++) {
if (task != NULL) {
scsi_free_scsi_task(task);
task = NULL;
@@ -78,6 +78,9 @@ test_inquiry_alloc_length(void)
goto finished;
}
scsi_free_scsi_task(task);
task = NULL;
logging(LOG_VERBOSE, "Version is SPC-3 or later. Read INQUIRY data using 16-bit allocation length");
logging(LOG_VERBOSE, "Read INQUIRY data with allocation length 511 (low order byte is 0xff)");
ret = inquiry(iscsic, tgt_lun, 0, 0, 511, &task);