failover detach

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski
2021-10-07 12:58:42 +02:00
committed by ajrutkow
parent 86c7a9f5ae
commit 90d8584bd7
9 changed files with 382 additions and 107 deletions

View File

@@ -204,6 +204,25 @@ int get_core_info(int fd, int cache_id, int core_id, struct kcas_core_info *info
int remove_core(unsigned int cache_id, unsigned int core_id,
bool detach, bool force_no_flush);
/**
* @brief detach caching device from failover standby cache instance
*
* @param cache_id cache instance identifier
*
* @return 0 upon successful detach, 1 upon failure
*/
int failover_detach(int cache_id);
/**
* @brief activate failover standby cache instance
*
* @param cache_id cache instance identifier
* @param cache_device cache device path
*
* @return 0 upon successful detach, 1 upon failure
*/
int failover_activate(int cache_id, const char *cache_device);
/**
* @brief remove inactive core device from a cache
*