1lsm_access_group_initiator_Laidbds(t3o)ragemgmt C APIlsMma_naucacless_group_initiator_add(3)
2
3
4
6 lsm_access_group_initiator_add - Adds an initiator to the access group
7
9 int lsm_access_group_initiator_add (lsm_connect *conn, lsm_access_group
10 *access_group, const char *init_id, lsm_access_group_init_type
11 init_type, lsm_access_group **updated_access_group, lsm_flag flags);
12
14 conn Valid lsm_connect pointer.
15
16 access_group
17 Pointer of lsm_access_group to modify.
18
19 init_id String. Initiator id to be added to group.
20
21 init_type lsm_access_group_init_type. Valid initiator types are: *
22 LSM_ACCESS_GROUP_INIT_TYPE_ISCSI_IQN
23 iSCSI IQN. * LSM_ACCESS_GROUP_INIT_TYPE_WWPN
24 FC WWPN
25
26 updated_access_group
27 Output pointer of the updated lsm_access_group. Returned
28 value must be freed with lsm_access_group_record_free.
29
30 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
31
33 1.0
34
36 Add an initiator to the specified access group.
37
39 LSM_CAP_ACCESS_GROUP_INITIATOR_ADD_WWPN LSM_CAP_ACCESS_GROUP_INITIA‐
40 TOR_ADD_ISCSI_IQN
41
43 Error code as enumerated by 'lsm_error_number'.
44 * LSM_ERR_OK
45 On success.
46 * LSM_ERR_INVALID_ARGUMENT
47 When any argument is NULL or not a valid lsm_connect pointer
48 or invalid flags or invalid lsm_access_group pointer or
49 illegal initiator or invalid init_type.
50 * LSM_ERR_NOT_FOUND_ACCESS_GROUP
51 When access group not found.
52 * LSM_ERR_EXISTS_INITIATOR
53 When specified initiator is in other access group.
54 * LSM_ERR_NO_STATE_CHANGE
55 When specified initiator is already in specified access group.
56 * LSM_ERR_NO_SUPPORT
57 Not supported.
58
59
60
61November 2021 lsm_access_group_initilastmo_ra_cacdedss_group_initiator_add(3)