Cache standby mode API changes
Error for an invalid cache operation while in passive mode added Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com> Error name correction Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com> API changes for passive cache mode Moved the passive cache error return source to the api for flush and set_param Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com> Further API changes for passive cache mode Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com> Passive api - review changes Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
This commit is contained in:
@@ -52,6 +52,11 @@ int __wrap_ocf_mngt_cache_set_fallback_pt(ocf_cache_t cache)
|
||||
function_called();
|
||||
}
|
||||
|
||||
bool __wrap_ocf_cache_is_standby(struct ocf_cache_t *cache)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static void ocf_mngt_cache_set_fallback_pt_error_threshold_test01(void **state)
|
||||
{
|
||||
struct ocf_cache *cache;
|
||||
|
@@ -88,6 +88,11 @@ int __wrap_ocf_metadata_flush_superblock(struct ocf_cache *cache)
|
||||
{
|
||||
}
|
||||
|
||||
bool __wrap_ocf_cache_is_standby(struct ocf_cache *cache)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Helper function for test prepration */
|
||||
static inline void setup_valid_config(struct ocf_mngt_io_class_config *cfg,
|
||||
bool remove)
|
||||
|
Reference in New Issue
Block a user