Disable changing cache params for detached cache

Majority of management operations should be blocked for detached cache,
although adding and removing cores should be possible.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk
2023-10-05 14:55:11 +02:00
committed by Rafal Stefanowski
parent f1bfd94c98
commit 83ec255458
6 changed files with 55 additions and 0 deletions

View File

@@ -547,6 +547,8 @@ void ocf_metadata_flush_superblock(ocf_cache_t cache,
OCF_DEBUG_TRACE(cache);
ENV_BUG_ON(!ocf_cache_is_device_attached(cache));
result = ocf_pipeline_create(&pipeline, cache,
&ocf_metadata_flush_sb_pipeline_props);
if (result)