lsm_initiator_id_verify - Man Page
Verifies if initiator id is valid.
Synopsis
int lsm_initiator_id_verify (const char *init_id, lsm_access_group_init_type *init_type);
Arguments
- init_id
String to verify.
- init_type
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.
Info
July 2024 Libstoragemgmt C API Manual