Scroll to navigation

lsm_volume_disable(3) Libstoragemgmt C API Manual lsm_volume_disable(3)

NAME

lsm_volume_disable - Set a Volume to offline

SYNOPSIS

int lsm_volume_disable (lsm_connect *conn, lsm_volume *volume, lsm_flag flags);

ARGUMENTS

Valid lsm_connect pointer.
The pointer of lsm_volume to be disabled.
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

VERSION

1.0

DESCRIPTION

Disable the read and write access to the specified volume.

CAPABILITY

LSM_CAP_VOLUME_DISABLE

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.
* LSM_ERR_NOT_FOUND_VOLUME
When volume not found.
* LSM_ERR_POOL_NOT_READY
Pool is not ready.
* LSM_ERR_NO_SUPPORT
Not supported.

lsm_volume_disable April 2021