diff --git a/src/mngt/ocf_mngt_cache.c b/src/mngt/ocf_mngt_cache.c index 75c7689..a72e593 100644 --- a/src/mngt/ocf_mngt_cache.c +++ b/src/mngt/ocf_mngt_cache.c @@ -1960,6 +1960,7 @@ static void _ocf_mngt_init_cache_front_volume(ocf_pipeline_t pipeline, result = ocf_volume_init(&cache->device->front_volume, type, &uuid, false); if (result) OCF_PL_FINISH_RET(context->pipeline, result); + cache->device->front_volume.cache = cache; context->flags.front_volume_inited = true; result = ocf_volume_open(&cache->device->front_volume, NULL); diff --git a/src/mngt/ocf_mngt_core.c b/src/mngt/ocf_mngt_core.c index a818e25..f409de9 100644 --- a/src/mngt/ocf_mngt_core.c +++ b/src/mngt/ocf_mngt_core.c @@ -229,6 +229,8 @@ int ocf_mngt_core_init_front_volume(ocf_core_t core) if (ret) return ret; + core->front_volume.cache = cache; + ret = ocf_volume_open(&core->front_volume, NULL); if (ret) ocf_volume_deinit(&core->front_volume);