Change error code and add new
Change 'OCF_ERR_START_CACHE_FAIL' to 'OCF_ERR_NO_MEM' while CAS fails in case of memory lack on device. Add new error code for case, when device doesn't satisfy CAS requirements - 'OCF_ERR_INVAL_CACHE_DEV'. Use 'OCF_ERR_INVAL_CACHE_DEV' in code. Update error code match in test. closes #317 issue Signed-off-by: Ostrokrzew <slawomir.jankowski@intel.com>
This commit is contained in:
@@ -47,6 +47,7 @@ class OcfErrorCode(IntEnum):
|
||||
OCF_ERR_INVALID_CACHE_MODE = auto()
|
||||
OCF_ERR_INVALID_CACHE_LINE_SIZE = auto()
|
||||
OCF_ERR_CACHE_NAME_MISMATCH = auto()
|
||||
OCF_ERR_INVAL_CACHE_DEV = auto()
|
||||
|
||||
|
||||
class OcfCompletion:
|
||||
|
||||
Reference in New Issue
Block a user