enum iscsi_connection_status

Overview

Connection status (up, down or non-existant. More…

#include <te_iscsi.h>

enum iscsi_connection_status {
    ISCSI_CONNECTION_REMOVED        = -1,
    ISCSI_CONNECTION_DOWN,
    ISCSI_CONNECTION_ESTABLISHING,
    ISCSI_CONNECTION_WAITING_DEVICE,
    ISCSI_CONNECTION_UP,
    ISCSI_CONNECTION_CLOSING,
    ISCSI_CONNECTION_ABNORMAL,
    ISCSI_CONNECTION_RECOVER_DOWN,
    ISCSI_CONNECTION_RECOVER_UP,
    ISCSI_CONNECTION_DISCOVERING,
};

Detailed Documentation

Connection status (up, down or non-existant. Note: it is essential that ISCSI_CONNECTION_DOWN == 0 and ISCSI_CONNECTION_UP == 1, or things will break.

Enum Values

ISCSI_CONNECTION_REMOVED

Connection is removed

ISCSI_CONNECTION_DOWN

Connection is down

ISCSI_CONNECTION_ESTABLISHING

Connection is being established

ISCSI_CONNECTION_WAITING_DEVICE

Connection is up but a corresponding SCSI device is not yet ready

ISCSI_CONNECTION_UP

Connection is up and ready

ISCSI_CONNECTION_CLOSING

Connection is being closed

ISCSI_CONNECTION_ABNORMAL

Connection is in abnormal state

ISCSI_CONNECTION_RECOVER_DOWN

Connection needs cleanup, then down

ISCSI_CONNECTION_RECOVER_UP

Connection needs cleanup, then up

ISCSI_CONNECTION_DISCOVERING

Doing discovery session