Fix error message about not enough amount of RAM
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
fdd50e61bd
commit
8a8420be2a
@ -1013,7 +1013,7 @@ int start_cache(uint16_t cache_id, unsigned int cache_init,
|
|||||||
min_free_ram_gb /= GiB;
|
min_free_ram_gb /= GiB;
|
||||||
|
|
||||||
cas_printf(LOG_ERR, "Not enough free RAM.\n"
|
cas_printf(LOG_ERR, "Not enough free RAM.\n"
|
||||||
"You need at least %0.2gGB to start cache"
|
"You need at least %0.2fGB to start cache"
|
||||||
" with cache line size equal %llukB.\n",
|
" with cache line size equal %llukB.\n",
|
||||||
min_free_ram_gb, line_size / KiB);
|
min_free_ram_gb, line_size / KiB);
|
||||||
|
|
||||||
|
@ -2540,7 +2540,6 @@ int cache_mngt_init_instance(struct ocf_mngt_cache_config *cfg,
|
|||||||
|
|
||||||
strlcpy(cmd->cache_elevator, context->cache_elevator,
|
strlcpy(cmd->cache_elevator, context->cache_elevator,
|
||||||
MAX_ELEVATOR_NAME);
|
MAX_ELEVATOR_NAME);
|
||||||
cmd->min_free_ram = context->min_free_ram;
|
|
||||||
|
|
||||||
result = _cache_start_finalize(cache, cmd->init_cache, false);
|
result = _cache_start_finalize(cache, cmd->init_cache, false);
|
||||||
if (result)
|
if (result)
|
||||||
@ -2555,6 +2554,8 @@ int cache_mngt_init_instance(struct ocf_mngt_cache_config *cfg,
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
err:
|
err:
|
||||||
|
cmd->min_free_ram = context->min_free_ram;
|
||||||
|
|
||||||
_cache_mngt_async_context_reinit(&context->async);
|
_cache_mngt_async_context_reinit(&context->async);
|
||||||
ocf_mngt_cache_stop(cache, _cache_mngt_cache_stop_rollback_complete,
|
ocf_mngt_cache_stop(cache, _cache_mngt_cache_stop_rollback_complete,
|
||||||
context);
|
context);
|
||||||
|
Loading…
Reference in New Issue
Block a user