table of contents
        
      
      
    - Tumbleweed 1.10.2-1.3
 - Leap-16.0
 - Leap-15.6
 
| lsm_access_group_initiator_add(3) | Libstoragemgmt C API Manual | lsm_access_group_initiator_add(3) | 
NAME¶
lsm_access_group_initiator_add - Adds an initiator to the access group
SYNOPSIS¶
int lsm_access_group_initiator_add (lsm_connect *conn, lsm_access_group *access_group, const char *init_id, lsm_access_group_init_type init_type, lsm_access_group **updated_access_group, lsm_flag flags);
ARGUMENTS¶
- conn
 - Valid lsm_connect pointer.
 - access_group
 - Pointer of lsm_access_group to modify.
 - init_id
 - String. Initiator id to be added to group.
 - init_type
 - lsm_access_group_init_type. Valid initiator types are: *
      LSM_ACCESS_GROUP_INIT_TYPE_ISCSI_IQN
    
iSCSI IQN. * LSM_ACCESS_GROUP_INIT_TYPE_WWPN
FC WWPN - updated_access_group
 - Output pointer of the updated lsm_access_group. Returned value must be freed with lsm_access_group_record_free.
 - flags
 - Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
 
VERSION¶
1.0
DESCRIPTION¶
Add an initiator to the specified access group.
CAPABILITY¶
LSM_CAP_ACCESS_GROUP_INITIATOR_ADD_WWPN LSM_CAP_ACCESS_GROUP_INITIATOR_ADD_ISCSI_IQN
RETURN¶
Error code as enumerated by 'lsm_error_number'.
  
   * LSM_ERR_OK
  
   On success.
  
   * LSM_ERR_INVALID_ARGUMENT
  
   When any argument is NULL or not a valid lsm_connect pointer
  
   or invalid flags or invalid lsm_access_group pointer or
  
   illegal initiator or invalid init_type.
  
   * LSM_ERR_NOT_FOUND_ACCESS_GROUP
  
   When access group not found.
  
   * LSM_ERR_EXISTS_INITIATOR
  
   When specified initiator is in other access group.
  
   * LSM_ERR_NO_STATE_CHANGE
  
   When specified initiator is already in specified access group.
  
   * LSM_ERR_NO_SUPPORT
  
   Not supported.
| lsm_access_group_initiator_add | January 2025 |