TESTS: Add a mechanism to temporarily disable the session reconnect

Some tests may cause a target to drop the session.
For these tests we DO want the test tool to detect that the command
failed and later reconnect the session again when we proceed to the next subtest

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2012-08-01 16:32:40 +10:00
parent 98b0a757b2
commit 77d8e41be7
6 changed files with 77 additions and 1 deletions

View File

@@ -117,6 +117,8 @@ struct iscsi_context {
int lun;
const char *portal;
int no_auto_reconnect;
int reconnect_deferred;
};
#define ISCSI_PDU_IMMEDIATE 0x40
@@ -271,6 +273,7 @@ unsigned long crc32c(char *buf, int len);
struct scsi_task *iscsi_scsi_get_task_from_pdu(struct iscsi_pdu *pdu);
int iscsi_reconnect(struct iscsi_context *iscsi);
void iscsi_set_noautoreconnect(struct iscsi_context *iscsi, int state);
#ifdef __cplusplus
}