Make iscsi_set_noautoreconnect public

In our use at Datto, we have come across several issues related to the
automatic reconnect logic (mainly its interaction with POLLHUP). This
allows us to disable the functionality, at the expense of writing our
own reconnect logic.

Related: #241
This commit is contained in:
Tim Crawford
2017-12-13 16:23:25 -05:00
parent aa617d1e5e
commit 32cfd3c2f8
2 changed files with 10 additions and 2 deletions

View File

@@ -1595,6 +1595,16 @@ iscsi_set_tcp_syncnt(struct iscsi_context *iscsi, int value);
EXTERN void
iscsi_set_bind_interfaces(struct iscsi_context *iscsi, char * interfaces);
/*
* This function is to disable auto reconnect logic.
*
* 0 - Disable this feature (auto reconnect)
* 1 - Enable this feature (no auto reconnect)
*/
EXTERN void
iscsi_set_noautoreconnect(struct iscsi_context *iscsi, int state);
/* This function is to set if we should retry a failed reconnect
count is defined as follows: