CONNECT: export the iscsi_reconnect() function.

There are situations where you may want to trigger an iscsi reconnect
explicitely from an application so make this function exposed to applications.
This commit is contained in:
Ronnie Sahlberg
2012-10-16 21:30:39 -07:00
parent 676bf2372c
commit b673d8ed57
2 changed files with 9 additions and 1 deletions

View File

@@ -274,7 +274,6 @@ 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

View File

@@ -332,6 +332,15 @@ EXTERN int iscsi_full_connect_sync(struct iscsi_context *iscsi, const char *port
*/
EXTERN int iscsi_disconnect(struct iscsi_context *iscsi);
/*
* Disconnect a connection to a target and try to reconnect.
*
* Returns:
* 0 reconnect was successful
* <0 error
*/
EXTERN int iscsi_reconnect(struct iscsi_context *iscsi);
/*
* Asynchronous call to perform an ISCSI login.
*