lsm_volume_disable - Man Page

Set a Volume to offline

Synopsis

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

Arguments

conn

Valid lsm_connect pointer.

volume

The pointer of lsm_volume to be disabled.

flags

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.

Info

July 2024 Libstoragemgmt C API Manual