Merge pull request #500 from imjfckm/fix-core-add-message

Fix message when CAS can't open exclusively inactive core
This commit is contained in:
Robert Baldyga 2020-08-21 10:40:49 +02:00 committed by GitHub
commit 9283601d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1408,7 +1408,7 @@ int check_core_already_cached(const char *core_device) {
curr_cache = caches[i]; curr_cache = caches[i];
for (j = 0; j < curr_cache->core_count; ++j) { for (j = 0; j < curr_cache->core_count; ++j) {
curr_core = &curr_cache->cores[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)) { strncmp(core_device_path, curr_core->path, MAX_STR_LEN)) {
free_cache_devices_list(caches, caches_count); free_cache_devices_list(caches, caches_count);
return FAILURE; return FAILURE;