From 8c3f83ffed7f7dbdee031a3fa37048c17bcecb6e Mon Sep 17 00:00:00 2001 From: Daniel Madej Date: Fri, 17 Jan 2025 16:47:41 +0100 Subject: [PATCH] Set flag for cache-attach operation Signed-off-by: Daniel Madej --- modules/cas_cache/service_ui_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/cas_cache/service_ui_ioctl.c b/modules/cas_cache/service_ui_ioctl.c index 567decc6c..32959d273 100644 --- a/modules/cas_cache/service_ui_ioctl.c +++ b/modules/cas_cache/service_ui_ioctl.c @@ -1,6 +1,6 @@ /* * Copyright(c) 2012-2022 Intel Corporation -* Copyright(c) 2024 Huawei Technologies +* Copyright(c) 2024-2025 Huawei Technologies * SPDX-License-Identifier: BSD-3-Clause */ @@ -97,6 +97,7 @@ long cas_service_ioctl_ctrl(struct file *filp, unsigned int cmd, if (retval) RETURN_CMD_RESULT(cmd_info, arg, retval); + attach_cfg.is_cmd_attach = true; retval = cache_mngt_attach_device(cache_name, OCF_CACHE_NAME_SIZE, cmd_info->cache_path_name, &attach_cfg);