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

@@ -45,9 +45,10 @@ test_write12_wrprotect(void)
if (!inq->protect || (rc16 != NULL && !rc16->prot_en)) {
logging(LOG_VERBOSE, "Device does not support/use protection information. All commands should fail.");
for (i = 1; i < 8; i++) {
ret = write12_invalidfieldincdb(iscsic, tgt_lun, 0,
block_size, block_size,
i, 0, 0, 0, 0, buf);
ret = write12(iscsic, tgt_lun, 0,
block_size, block_size,
i, 0, 0, 0, 0, buf,
EXPECT_INVALID_FIELD_IN_CDB);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITE12 is not implemented.");
CU_PASS("WRITE12 is not implemented.");