From 91590ce96fcda162c9218eb19baa030be03c81f8 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Wed, 28 Aug 2024 08:16:37 +0200 Subject: [PATCH 1/2] Update OCF submodule Signed-off-by: Robert Baldyga --- ocf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocf b/ocf index 283a897ee..476573bff 160000 --- a/ocf +++ b/ocf @@ -1 +1 @@ -Subproject commit 283a897eebfd00fd14df271b03861898947de1d3 +Subproject commit 476573bffae4ec39cc4077b558a89826c8034598 From c9644baf423b835fb14651a7c1d020fc0766fada Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Wed, 26 Jul 2023 09:56:20 +0200 Subject: [PATCH 2/2] Rename "initializing" cache state to "detached" Signed-off-by: Michal Mielewczyk Signed-off-by: Robert Baldyga --- casadm/cas_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/casadm/cas_lib.c b/casadm/cas_lib.c index 0ff348a63..8889ed852 100644 --- a/casadm/cas_lib.c +++ b/casadm/cas_lib.c @@ -1,5 +1,6 @@ /* * Copyright(c) 2012-2022 Intel Corporation +* Copyright(c) 2024 Huawei Technologies * SPDX-License-Identifier: BSD-3-Clause */ @@ -66,7 +67,7 @@ int _check_cache_device(const char *device_path, static const char *cache_states_name[ocf_cache_state_max + 1] = { [ocf_cache_state_running] = "Running", [ocf_cache_state_stopping] = "Stopping", - [ocf_cache_state_initializing] = "Initializing", + [ocf_cache_state_detached] = "Detached", [ocf_cache_state_incomplete] = "Incomplete", [ocf_cache_state_standby] = "Standby", [ocf_cache_state_max] = "Unknown",