From e2c6a25ee944a307f7f04e8b167e7eedb0fc97fb Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Fri, 8 Oct 2021 22:10:49 +0200 Subject: [PATCH] [REVERTME] Disable option to perform activate without detach Signed-off-by: Adam Rutkowski --- src/mngt/ocf_mngt_cache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mngt/ocf_mngt_cache.c b/src/mngt/ocf_mngt_cache.c index 350cfe2..33b7588 100644 --- a/src/mngt/ocf_mngt_cache.c +++ b/src/mngt/ocf_mngt_cache.c @@ -2505,6 +2505,11 @@ static void _ocf_mngt_cache_activate(ocf_cache_t cache, if (result) OCF_CMPL_RET(cache, priv1, priv2, -OCF_ERR_NO_MEM); + if (!ocf_refcnt_frozen(&cache->refcnt.metadata) || + device_cfg->uuid.size == 0) { + ocf_cache_log(cache, log_err, "not yet implemented.\n"); + OCF_CMPL_RET(cache, priv1, priv2, -OCF_ERR_CACHE_EXIST); + } context = ocf_pipeline_get_priv(pipeline);