Scroll to navigation

lsm_initiator_id_verify(3) Libstoragemgmt C API Manual lsm_initiator_id_verify(3)

NAME

lsm_initiator_id_verify - Verifies if initiator id is valid.

SYNOPSIS

int lsm_initiator_id_verify (const char *init_id, lsm_access_group_init_type *init_type);

ARGUMENTS

String to verify.
lsm_access_group pointer. The type of initiator ID. You may set it to LSM_ACCESS_GROUP_INIT_TYPE_UNKNOWN, this function will try iSCSI and WWPN, and modify this argument to valid type of initiator type.

VERSION

1.0

DESCRIPTION

Verifies whether specified initiator is valid:
* iSCSI:
Starting with "iqn", "eui", or "naa".
* WWPN:
16 hex digits(0-9a-fA-F).

RETURN

Error code as enumerated by 'lsm_error_number':
* LSM_ERR_OK
Is valid initiator.
* LSM_ERR_INVALID_ARGUMENT
Not a valid initiator or any argument is NULL.

lsm_initiator_id_verify April 2021