1lsm_initiator_id_verify(3)Libstoragemgmt C API Manuallsm_initiator_id_verify(3)
2
3
4
6 lsm_initiator_id_verify - Verifies if initiator id is valid.
7
9 int lsm_initiator_id_verify (const char *init_id, lsm_ac‐
10 cess_group_init_type *init_type);
11
13 init_id String to verify.
14
15 init_type lsm_access_group pointer. The type of initiator ID. You
16 may set it to LSM_ACCESS_GROUP_INIT_TYPE_UNKNOWN, this
17 function will try iSCSI and WWPN, and modify this argument
18 to valid type of initiator type.
19
21 1.0
22
24 Verifies whether specified initiator is valid:
25 * iSCSI:
26 Starting with "iqn", "eui", or "naa".
27 * WWPN:
28 16 hex digits(0-9a-fA-F).
29
31 Error code as enumerated by 'lsm_error_number':
32 * LSM_ERR_OK
33 Is valid initiator.
34 * LSM_ERR_INVALID_ARGUMENT
35 Not a valid initiator or any argument is NULL.
36
37
38
39April 2023 lsm_initiator_id_verify lsm_initiator_id_verify(3)