Verify standby/active cache state in OCF entry points
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -57,6 +57,7 @@ class OcfErrorCode(IntEnum):
|
||||
OCF_ERR_CORE_SIZE_MISMATCH = auto()
|
||||
OCF_ERR_STANDBY_ATTACHED = auto()
|
||||
OCF_ERR_CORE_NOT_REMOVED = auto()
|
||||
OCF_ERR_CACHE_NOT_STANDBY = auto()
|
||||
|
||||
|
||||
class OcfCompletion:
|
||||
|
||||
@@ -91,6 +91,11 @@ void __wrap_ocf_mngt_cache_unlock(env_rwsem *s)
|
||||
function_called();
|
||||
}
|
||||
|
||||
bool __wrap_ocf_cache_is_standby(ocf_cache_t cache)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static void cleaner_complete(ocf_cleaner_t cleaner, uint32_t interval)
|
||||
{
|
||||
function_called();
|
||||
|
||||
Reference in New Issue
Block a user