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:

committed by
Rafal Stefanowski

parent
f1bfd94c98
commit
83ec255458
@@ -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)
|
||||
|
Reference in New Issue
Block a user