lsm_volume_read_cache_policy_update - Man Page

Change RAM read cache policy of the specified volume

Synopsis

int lsm_volume_read_cache_policy_update (lsm_connect *conn, lsm_volume *volume, uint32_t rcp, lsm_flag flags);

Arguments

conn

Valid lsm_connect pointer.

volume

Pointer of lsm_string.

rcp

uint32_t. Read cache policy. Valid values are: * LSM_VOLUME_READ_CACHE_POLICY_ENABLED
  Enable read cache. * LSM_VOLUME_READ_CACHE_POLICY_DISABLED
  Disable read cache.

flags

Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

Version

1.3

Description

Change the RAM read cache policy of the specified volume.  If LSM_CAP_VOLUME_READ_CACHE_POLICY_UPDATE_IMPACT_WRITE is supported(like HPE SmartArray), the changes on write cache policy might also impact read cache policy.

Capability

LSM_CAP_VOLUME_READ_CACHE_POLICY_UPDATE LSM_CAP_VOLUME_READ_CACHE_POLICY_UPDATE_IMPACT_WRITE

Return

LSM_ERR_OK on success else error reason
   * LSM_ERR_OK
       On success.
   * LSM_ERR_NOT_FOUND_VOLUME
       When volume not found.
   * LSM_ERR_INVALID_ARGUMENT
       When any argument is NULL or invalid flags.
   * LSM_ERR_NO_SUPPORT
       Not supported.

Info

July 2024 Libstoragemgmt C API Manual