Casadm update

Add extended error message in casadm.
Add shortened code mapping for new error code.

Signed-off-by: Ostrokrzew <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
Ostrokrzew 2019-12-24 14:01:10 +01:00 committed by Slawomir Jankowski
parent 45e862fdbd
commit bbc03abdf7
2 changed files with 7 additions and 2 deletions

View File

@ -143,13 +143,17 @@ struct {
{
OCF_ERR_METADATA_FOUND,
"Old metadata found on device.\nPlease load cache metadata using --load"
" option or use --force to\n discard on-disk metadata and"
" start fresh cache instance.\n"
" option or use --force to\n discard on-disk metadata and"
" start fresh cache instance.\n"
},
{
OCF_ERR_CACHE_NAME_MISMATCH,
"Cache id specified by user and loaded from metadata are different"
},
{
OCF_ERR_INVAL_CACHE_DEV,
"Device does not meet requirements."
},
/* CAS kernel error mappings*/
{

View File

@ -45,6 +45,7 @@ struct {
{ OCF_ERR_CORE_IN_INACTIVE_STATE, ENODEV },
{ OCF_ERR_INVALID_CACHE_MODE, EINVAL },
{ OCF_ERR_INVALID_CACHE_LINE_SIZE, EINVAL },
{ OCF_ERR_INVAL_CACHE_DEV, EINVAL },
/* CAS kernel error mappings*/
{ KCAS_ERR_ROOT, EPERM },