Scroll to navigation

lsm_volume_read_cache_policy_update(3) Libstoragemgmt C API Manual lsm_volume_read_cache_policy_update(3)

NAME

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

Valid lsm_connect pointer.
Pointer of lsm_string.
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.
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.

lsm_volume_read_cache_policy_update April 2021