lsm_access_groups_granted_to_volume - Man Page

Retrieves the access groups that have access to the specified volume.

Synopsis

int lsm_access_groups_granted_to_volume (lsm_connect *conn, lsm_volume *volume, lsm_access_group **groups[], uint32_t *group_count, lsm_flag flags);

Arguments

conn

Valid connection.

volume

Pointer of lsm_volume.

groups[]

Output pointer of lsm_access_group array. Returned value must be freed with a call to lsm_access_group_record_array_free.

group_count

uint32_t. Number of access groups.

flags

Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

Version

1.0

Description

Return a list of volumes which is accessible by specified access group.

Capability

LSM_CAP_ACCESS_GROUPS_GRANTED_TO_VOLUME

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_volume pointer.
   * LSM_ERR_NOT_FOUND_VOLUME
       When volume not found.
   * LSM_ERR_NO_SUPPORT
       Not supported.

Info

April 2023 Libstoragemgmt C API Manual