Merge pull request #678 from arutk/pes

Verify standby/active cache state in OCF entry points
This commit is contained in:
Robert Baldyga
2022-03-28 12:07:06 +02:00
committed by GitHub
11 changed files with 174 additions and 1 deletions

View File

@@ -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:

View File

@@ -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();