Scroll to navigation

lsm_volumes_accessible_by_access_group(3) Libstoragemgmt C API Manual lsm_volumes_accessible_by_access_group(3)

NAME

lsm_volumes_accessible_by_access_group - Query volumes that the specified access group has access to.

SYNOPSIS

int lsm_volumes_accessible_by_access_group (lsm_connect *conn, lsm_access_group *group, lsm_volume **volumes[], uint32_t *count, lsm_flag flags);

ARGUMENTS

Valid connection.
Pointer of lsm_access_group.
Output pointer of lsm_volume array. Returned value must be freed with a call to lsm_volume_record_array_free.
uint32_t. Number of volumes.
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_VOLUMES_ACCESSIBLE_BY_ACCESS_GROUP

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.
* LSM_ERR_NOT_FOUND_ACCESS_GROUP
When access group not found.
* LSM_ERR_NO_SUPPORT
Not supported.

lsm_volumes_accessible_by_access_group April 2023