temp: redo the write10/12/16 commands to the new saner api
Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
8aefc7d579
commit
8ffd78c117
@@ -33,7 +33,8 @@ test_write10_0blocks(void)
|
||||
logging(LOG_VERBOSE, LOG_BLANK_LINE);
|
||||
logging(LOG_VERBOSE, "Test WRITE10 0-blocks at LBA==0");
|
||||
ret = write10(iscsic, tgt_lun, 0, 0, block_size,
|
||||
0, 0, 0, 0, 0, NULL);
|
||||
0, 0, 0, 0, 0, NULL,
|
||||
EXPECT_STATUS_GOOD);
|
||||
if (ret == -2) {
|
||||
logging(LOG_NORMAL, "[SKIPPED] WRITE10 is not implemented.");
|
||||
CU_PASS("WRITE10 is not implemented.");
|
||||
@@ -47,19 +48,22 @@ test_write10_0blocks(void)
|
||||
}
|
||||
|
||||
logging(LOG_VERBOSE, "Test WRITE10 0-blocks one block past end-of-LUN");
|
||||
ret = write10_lbaoutofrange(iscsic, tgt_lun, num_blocks + 1, 0,
|
||||
block_size, 0, 0, 0, 0, 0, NULL);
|
||||
ret = write10(iscsic, tgt_lun, num_blocks + 1, 0,
|
||||
block_size, 0, 0, 0, 0, 0, NULL,
|
||||
EXPECT_LBA_OOB);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Test WRITE10 0-blocks at LBA==2^31");
|
||||
ret = write10_lbaoutofrange(iscsic, tgt_lun, 0x80000000, 0,
|
||||
block_size, 0, 0, 0, 0, 0, NULL);
|
||||
ret = write10(iscsic, tgt_lun, 0x80000000, 0,
|
||||
block_size, 0, 0, 0, 0, 0, NULL,
|
||||
EXPECT_LBA_OOB);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Test WRITE10 0-blocks at LBA==-1");
|
||||
ret = write10_lbaoutofrange(iscsic, tgt_lun, -1, 0, block_size,
|
||||
0, 0, 0, 0, 0, NULL);
|
||||
ret = write10(iscsic, tgt_lun, -1, 0, block_size,
|
||||
0, 0, 0, 0, 0, NULL,
|
||||
EXPECT_LBA_OOB);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user