temp: redo the write10/12/16 commands to the new saner api

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
Ronnie Sahlberg
2014-09-16 16:33:13 -07:00
committed by Ronnie Sahlberg
parent 8aefc7d579
commit 8ffd78c117
38 changed files with 269 additions and 921 deletions

View File

@@ -76,7 +76,8 @@ void test_iscsi_datasn_invalid(void)
iscsi_set_timeout(iscsic, 3);
ret = write10(iscsic, tgt_lun, 100, 2 * block_size,
block_size, 0, 0, 0, 0, 0, buf);
block_size, 0, 0, 0, 0, 0, buf,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITE10 is not implemented.");
CU_PASS("WRITE10 is not implemented.");
@@ -98,7 +99,8 @@ void test_iscsi_datasn_invalid(void)
iscsi_set_timeout(iscsic, 3);
ret = write10(iscsic, tgt_lun, 100, block_size,
block_size, 0, 0, 0, 0, 0, buf);
block_size, 0, 0, 0, 0, 0, buf,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITE10 is not implemented.");
CU_PASS("WRITE10 is not implemented.");
@@ -120,7 +122,8 @@ void test_iscsi_datasn_invalid(void)
iscsi_set_timeout(iscsic, 3);
ret = write10(iscsic, tgt_lun, 100, block_size,
block_size, 0, 0, 0, 0, 0, buf);
block_size, 0, 0, 0, 0, 0, buf,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITE10 is not implemented.");
CU_PASS("WRITE10 is not implemented.");
@@ -143,7 +146,8 @@ void test_iscsi_datasn_invalid(void)
iscsi_set_timeout(iscsic, 3);
ret = write10(iscsic, tgt_lun, 100, 2 * block_size,
block_size, 0, 0, 0, 0, 0, buf);
block_size, 0, 0, 0, 0, 0, buf,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITE10 is not implemented.");
CU_PASS("WRITE10 is not implemented.");