add iscsi_force_reconnect()
If a connection attempt is hung, then iscsi_reconnect() won't do anything. This makes sense if we'd just re-try to connect to the same target, but if (for example) login redirect might point us to a different, healthy, target, it should be possible to restart the full connection process on request. Signed-off-by: John Levon <john.levon@nutanix.com>
This commit is contained in:
committed by
Bart Van Assche
parent
314aa26576
commit
30dd7c6429
@@ -2,6 +2,7 @@ LIBRARY libiscsi
|
||||
EXPORTS
|
||||
iscsi_connect_async
|
||||
iscsi_connect_sync
|
||||
iscsi_force_reconnect_sync
|
||||
iscsi_reconnect_sync
|
||||
iscsi_create_context
|
||||
iscsi_destroy_context
|
||||
@@ -10,6 +11,7 @@ iscsi_disconnect
|
||||
iscsi_discovery_async
|
||||
iscsi_discovery_sync
|
||||
iscsi_free_discovery_data
|
||||
iscsi_force_reconnect
|
||||
iscsi_full_connect_async
|
||||
iscsi_full_connect_sync
|
||||
iscsi_get_error
|
||||
@@ -283,4 +285,4 @@ scsi_task_set_iov_in
|
||||
scsi_task_set_iov_out
|
||||
scsi_version_to_str
|
||||
scsi_version_descriptor_to_str
|
||||
win32_poll
|
||||
win32_poll
|
||||
|
||||
Reference in New Issue
Block a user