From b3fed251535eb620af4b179fa127c0abda877d6c Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Wed, 12 Aug 2020 11:23:50 +0200 Subject: [PATCH] Fix message when CAS can't open exclusively inactive core Signed-off-by: Jan Musial --- casadm/cas_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/casadm/cas_lib.c b/casadm/cas_lib.c index c131c59..d4fc533 100644 --- a/casadm/cas_lib.c +++ b/casadm/cas_lib.c @@ -1408,7 +1408,7 @@ int check_core_already_cached(const char *core_device) { curr_cache = caches[i]; for (j = 0; j < curr_cache->core_count; ++j) { curr_core = &curr_cache->cores[j]; - if (0 == + if (curr_core->info.state == ocf_core_state_active && 0 == strncmp(core_device_path, curr_core->path, MAX_STR_LEN)) { free_cache_devices_list(caches, caches_count); return FAILURE;