Merge pull request #164 from robertbaldyga/add-open-cores-parameter

Add open_cores parameter to ocf_mngt_cache_device_config
This commit is contained in:
Michal Rakowski
2019-05-23 10:44:47 +02:00
committed by GitHub
2 changed files with 14 additions and 7 deletions

View File

@@ -413,7 +413,7 @@ static int _ocf_mngt_init_instance_add_cores(
core->opened = true;
ocf_cache_log(cache, log_info,
"Attached core %u from pool\n", i);
} else {
} else if (context->cfg.open_cores) {
ret = ocf_volume_open(&core->volume, NULL);
if (ret == -OCF_ERR_NOT_OPEN_EXC) {
ocf_cache_log(cache, log_warn,