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:
Ostrokrzew
2019-12-17 10:15:52 +01:00
parent 3aa68bcb15
commit 3fca309e51
4 changed files with 8 additions and 4 deletions

View File

@@ -117,8 +117,11 @@ typedef enum {
/** Invalid cache line size */
OCF_ERR_INVALID_CACHE_LINE_SIZE,
/** Invalid cache name loaded*/
/** Invalid cache name loaded */
OCF_ERR_CACHE_NAME_MISMATCH,
/** Device does not meet requirements */
OCF_ERR_INVAL_CACHE_DEV,
} ocf_error_t;
#endif /* __OCF_ERR_H__ */