**ocf_mngt.h**: In core name change

pointer type to array which is 32 characters long;
**core.py**: Add missing import and modify class' field type
to keep consistency;
**ocf_mngt_core**: Remove local variable 'name';
remove env_vmalloc for 'name' - isn't no longer needed;
remove initialization 'name' - as above;
remove env_vfree for context->cfg.name - variable isn't no allocated
in memory;
check if cfg->name exists;
change label in goto from deleted err_name to the closest err_pipeline.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
Slawomir_Jankowski
2019-09-30 15:55:33 +02:00
parent 46e7dd8748
commit cdf0caf704
3 changed files with 7 additions and 22 deletions

View File

@@ -22,7 +22,7 @@ struct ocf_mngt_core_config {
/**
* @brief OCF core name
*/
const char *name;
char name[OCF_CORE_NAME_SIZE];
/**
* @brief OCF core volume UUID