Translate OCF-error-codes in IO path

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2019-05-28 15:20:09 +02:00
parent b63cf8268d
commit f9c0c929c1
4 changed files with 105 additions and 73 deletions

View File

@@ -73,6 +73,9 @@ struct {
OCF_ERR_IO_CLASS_NOT_EXIST,
"No such IO class ID in the cache"
},
{ OCF_ERR_IO,
"I/O error"
},
{
OCF_ERR_WRITE_CACHE,
"Error while writing to cache device"
@@ -113,6 +116,22 @@ struct {
OCF_ERR_NOT_OPEN_EXC,
"Cannot open device exclusively"
},
{
OCF_ERR_AGAIN,
"Try again"
},
{
OCF_ERR_NOT_SUPP,
"Operation not supported"
},
{
OCF_ERR_METADATA_VER,
"Metadata version mismatch"
},
{
OCF_ERR_NO_METADATA,
"No metadata found on device"
},
/* CAS kernel error mappings*/
{