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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user