Disable cache attach and detach

The feature is disable due to a possible data corruption which may occur when
attaching a new caching device. Once the problem is resolved this commit should
be reverted

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk
2024-09-26 16:34:07 +02:00
parent cefa6ab121
commit f34328adf2
2 changed files with 9 additions and 2 deletions

View File

@@ -2237,7 +2237,7 @@ static cli_command cas_commands[] = {
.options = attach_cache_options,
.command_handle_opts = start_cache_command_handle_option,
.handle = handle_cache_attach,
.flags = CLI_SU_REQUIRED,
.flags = (CLI_SU_REQUIRED | CLI_COMMAND_BLOCKED),
.help = NULL,
},
{
@@ -2247,7 +2247,7 @@ static cli_command cas_commands[] = {
.options = detach_options,
.command_handle_opts = command_handle_option,
.handle = handle_cache_detach,
.flags = CLI_SU_REQUIRED,
.flags = (CLI_SU_REQUIRED | CLI_COMMAND_BLOCKED),
.help = NULL,
},
{