Add a test that a sanitize operation will continue across resets

Verify that abort task/abort task set/lun reset/warm reset/cold reset
and full blown session failures will not affect a sanitize that is in
progress
This commit is contained in:
Ronnie Sahlberg
2013-07-21 14:11:13 -07:00
parent 49698e0322
commit d901700633
7 changed files with 186 additions and 2 deletions

View File

@@ -55,7 +55,9 @@ test_sanitize_readonly(void)
logging(LOG_VERBOSE, "Use TESTUNITREADY to clear unit attention on "
"first connection");
while (testunitready_clear_ua(iscsic, tgt_lun));
while (testunitready_clear_ua(iscsic, tgt_lun)) {
sleep(1);
}
logging(LOG_VERBOSE, "Check if SANITIZE OVERWRITE is supported "
"in REPORT_SUPPORTED_OPCODES");
@@ -115,7 +117,9 @@ test_sanitize_readonly(void)
logging(LOG_VERBOSE, "Use TESTUNITREADY to clear unit attention on "
"first connection");
while (testunitready_clear_ua(iscsic, tgt_lun));
while (testunitready_clear_ua(iscsic, tgt_lun)) {
sleep(1);
}
iscsi_destroy_context(iscsic2);
iscsic2 = NULL;