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:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user