TESTS: change get_lba_status to new api
Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
fd21a8f2c4
commit
9e75b10103
@@ -33,7 +33,8 @@ 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, NULL);
|
||||
ret = get_lba_status(iscsic, NULL, tgt_lun, 0, 24,
|
||||
EXPECT_STATUS_GOOD);
|
||||
if (ret == -2) {
|
||||
CU_PASS("[SKIPPED] Target does not support GET_LBA_STATUS. Skipping test");
|
||||
return;
|
||||
@@ -47,7 +48,8 @@ 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, NULL);
|
||||
ret = get_lba_status(iscsic, NULL, tgt_lun, num_blocks - i, 24,
|
||||
EXPECT_STATUS_GOOD);
|
||||
if (ret != 0) {
|
||||
CU_FAIL("[FAILED] GET_LBA_STATUS command failed");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user