lsm_volume_enable - Man Page

Set a Volume to online

Synopsis

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

Arguments

conn

Valid lsm_connect pointer.

volume

The pointer of lsm_volume to be enabled.

flags

Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

Version

1.0

Description

Enable the specified volume when that volume is disabled by administrator or via lsm_volume_disable.

Capability

LSM_CAP_VOLUME_ENABLE

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

March 2021 Libstoragemgmt C API Manual