Verify standby/active cache state in OCF entry points

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski
2022-03-23 15:03:50 +01:00
parent e741160f8d
commit 4a839cd332
11 changed files with 174 additions and 1 deletions

View File

@@ -149,7 +149,10 @@ typedef enum {
/** Failed to remove the core */
OCF_ERR_CORE_NOT_REMOVED,
OCF_ERR_MAX = OCF_ERR_CORE_NOT_REMOVED,
/** Operation only allowed in standby mode **/
OCF_ERR_CACHE_NOT_STANDBY,
OCF_ERR_MAX = OCF_ERR_CACHE_NOT_STANDBY,
} ocf_error_t;