libnvmf_context_set_reconnect_policy(9)

NAME
libnvmf_context_set_reconnect_policy - Set reconnect policy for context

SYNOPSIS
int libnvmf_context_set_reconnect_policy (struct libnvmf_context *fctx , int ctrl_loss_tmo , int reconnect_delay , int fast_io_fail_tmo );

ARGUMENTS

fctx
    Fabrics context

ctrl_loss_tmo
    Controller loss timeout in seconds; negative means retry indefinitely

reconnect_delay
    Delay between reconnect attempts in seconds

fast_io_fail_tmo
    Fast I/O fail timeout in seconds; negative disables it; must not exceed ctrl_loss_tmo

DESCRIPTION
Convenience setter for the three coupled reconnect policy parameters. ctrl_loss_tmo and reconnect_delay are coupled: the kernel derives the maximum reconnect attempt count from their ratio. fast_io_fail_tmo controls how quickly outstanding I/O is failed while reconnection is in progress. Individual libnvmf_context_set_ctrl_loss_tmo, _set_reconnect_delay, and _set_fast_io_fail_tmo accessors are also available when only a subset needs to change.

RETURN
0 on success, negative error code otherwise.