New error codes

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk 2023-10-11 08:02:56 +02:00 committed by Rafal Stefanowski
parent 853e8f9357
commit e0ef8c1b8d
2 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,6 @@
/*
* Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -178,6 +179,10 @@ struct {
OCF_ERR_CACHE_LINE_SIZE_MISMATCH,
"Cache line size mismatch"
},
{
OCF_ERR_CACHE_DETACHED,
"The operation is not permited while the cache is detached"
},
{
OCF_ERR_CACHE_STANDBY,
"The operation is not permited while the cache is in the standby mode"
@ -239,6 +244,11 @@ struct {
"Device contains partitions.\nIf you want to continue, "
"please use --force option.\nWarning: all data will be lost!"
},
{
KCAS_ERR_DEVICE_PROPERTIES_MISMATCH,
"The new device's properties doesn't match the original cache device's"
" properties"
},
{
KCAS_ERR_A_PART,
"Formatting of partition is unsupported."

View File

@ -1,5 +1,6 @@
/*
* Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -545,6 +546,11 @@ enum kcas_error {
/** Device contains partitions */
KCAS_ERR_CONTAINS_PART,
/** The new device's properties doesn't match the original cache's
* properties
*/
KCAS_ERR_DEVICE_PROPERTIES_MISMATCH,
/** Given device is a partition */
KCAS_ERR_A_PART,