Scroll to navigation

lsm_volume_mask(3) Libstoragemgmt C API Manual lsm_volume_mask(3)

NAME

lsm_volume_mask - 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

Valid connection.
Pointer of lsm_access_group.
Pointer of lsm_volume.
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.

lsm_volume_mask April 2021