test-tool: allow get_lba_status to return provisioning type

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2014-08-13 17:02:51 +02:00
parent b9cf7e8cd2
commit 8e4e03d85d
3 changed files with 8 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ test_get_lba_status_simple(void)
logging(LOG_VERBOSE, LOG_BLANK_LINE);
logging(LOG_VERBOSE, "Test GET_LBA_STATUS of 1-256 blocks at the start of the LUN");
for (i = 1; i <= 256; i++) {
ret = get_lba_status(iscsic, tgt_lun, 0, 24);
ret = get_lba_status(iscsic, tgt_lun, 0, 24, NULL);
if (ret == -2) {
CU_PASS("[SKIPPED] Target does not support GET_LBA_STATUS. Skipping test");
return;
@@ -44,7 +44,7 @@ test_get_lba_status_simple(void)
logging(LOG_VERBOSE, "Test GET_LBA_STATUS of 1-256 blocks at the end of the LUN");
for (i = 1; i <= 256; i++) {
ret = get_lba_status(iscsic, tgt_lun, num_blocks - i, 24);
ret = get_lba_status(iscsic, tgt_lun, num_blocks - i, 24, NULL);
CU_ASSERT_EQUAL(ret, 0);
}
}