Rename cache "initializing" state to "detached"
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
committed by
Rafal Stefanowski
parent
d3c11a983b
commit
047e07c062
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2021 Intel Corporation
|
||||
* Copyright(c) 2023 Huawei Technologies
|
||||
* Copyright(c) 2023-2024 Huawei Technologies
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
@@ -156,14 +156,14 @@ bool ocf_cache_is_device_attached(ocf_cache_t cache);
|
||||
bool ocf_cache_is_running(ocf_cache_t cache);
|
||||
|
||||
/**
|
||||
* @brief Check if cache object is initializing
|
||||
* @brief Check if cache is detached
|
||||
*
|
||||
* @param[in] cache Cache object
|
||||
* @param[in] cache Cache
|
||||
*
|
||||
* @retval 1 Caching device is initializing
|
||||
* @retval 0 Caching device is not initializing
|
||||
* @retval 1 Caching device is detached
|
||||
* @retval 0 Caching device is not detached
|
||||
*/
|
||||
bool ocf_cache_is_initializing(ocf_cache_t cache);
|
||||
bool ocf_cache_is_detached(ocf_cache_t cache);
|
||||
|
||||
/**
|
||||
* @brief Check if cache object is standby
|
||||
|
||||
@@ -119,8 +119,8 @@ typedef enum {
|
||||
ocf_cache_state_stopping = 1, //!< ocf_cache_state_stopping
|
||||
/*!< OCF cache instance is stopping */
|
||||
|
||||
ocf_cache_state_initializing = 2, //!< ocf_cache_state_initializing
|
||||
/*!< OCF cache instance during initialization */
|
||||
ocf_cache_state_detached = 2, //!< ocf_cache_state_detached
|
||||
/*!< OCF cache instance without caching device attached */
|
||||
|
||||
ocf_cache_state_incomplete = 3, //!< ocf_cache_state_incomplete
|
||||
/*!< OCF cache has at least one inactive core */
|
||||
|
||||
Reference in New Issue
Block a user