lsm_volume_mask - Man Page
Grants access to a volume for the specified group
Synopsis
int lsm_volume_mask (lsm_connect *conn, lsm_access_group *access_group, lsm_volume *volume, lsm_flag flags);
Arguments
- conn
Valid connection.
- access_group
Pointer of lsm_access_group.
- volume
Pointer of lsm_volume.
- flags
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
Version
1.0
Description
Grants access to a volume for the specified group, also known as LUN masking or mapping.
Capability
LSM_CAP_VOLUME_MASK
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
invalid lsm_volume.
* LSM_ERR_NOT_FOUND_ACCESS_GROUP
When access group not found.
* LSM_ERR_NOT_FOUND_VOLUME
When volume not found.
* LSM_ERR_NO_STATE_CHANGE
When specified volume is already masked to specified access
group.
* LSM_ERR_NO_SUPPORT
Not supported.