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

@@ -40,8 +40,8 @@ test_write16_flags(void)
logging(LOG_VERBOSE, "Test WRITE16 with DPO==1");
ret = write16(iscsic, tgt_lun, 0,
block_size, block_size,
0, 1, 0, 0, 0, buf);
block_size, block_size, 0, 1, 0, 0, 0, buf,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITE16 is not implemented.");
CU_PASS("WRITE16 is not implemented.");
@@ -52,28 +52,28 @@ test_write16_flags(void)
logging(LOG_VERBOSE, "Test WRITE16 with FUA==1 FUA_NV==0");
ret = write16(iscsic, tgt_lun, 0,
block_size, block_size,
0, 0, 1, 0, 0, buf);
block_size, block_size, 0, 0, 1, 0, 0, buf,
EXPECT_STATUS_GOOD);
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE16 with FUA==1 FUA_NV==1");
ret = write16(iscsic, tgt_lun, 0,
block_size, block_size,
0, 0, 1, 1, 0, buf);
block_size, block_size, 0, 0, 1, 1, 0, buf,
EXPECT_STATUS_GOOD);
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE16 with FUA==0 FUA_NV==1");
ret = write16(iscsic, tgt_lun, 0,
block_size, block_size,
0, 0, 0, 1, 0, buf);
block_size, block_size, 0, 0, 0, 1, 0, buf,
EXPECT_STATUS_GOOD);
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE16 with DPO==1 FUA==1 FUA_NV==1");
ret = write16(iscsic, tgt_lun, 0,
block_size, block_size,
0, 1, 1, 1, 0, buf);
block_size, block_size, 0, 1, 1, 1, 0, buf,
EXPECT_STATUS_GOOD);
CU_ASSERT_EQUAL(ret, 0);
}