New error codes
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
853e8f9357
commit
e0ef8c1b8d
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright(c) 2012-2022 Intel Corporation
|
* Copyright(c) 2012-2022 Intel Corporation
|
||||||
|
* Copyright(c) 2024 Huawei Technologies
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -178,6 +179,10 @@ struct {
|
|||||||
OCF_ERR_CACHE_LINE_SIZE_MISMATCH,
|
OCF_ERR_CACHE_LINE_SIZE_MISMATCH,
|
||||||
"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,
|
OCF_ERR_CACHE_STANDBY,
|
||||||
"The operation is not permited while the cache is in the standby mode"
|
"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, "
|
"Device contains partitions.\nIf you want to continue, "
|
||||||
"please use --force option.\nWarning: all data will be lost!"
|
"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,
|
KCAS_ERR_A_PART,
|
||||||
"Formatting of partition is unsupported."
|
"Formatting of partition is unsupported."
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright(c) 2012-2022 Intel Corporation
|
* Copyright(c) 2012-2022 Intel Corporation
|
||||||
|
* Copyright(c) 2024 Huawei Technologies
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -545,6 +546,11 @@ enum kcas_error {
|
|||||||
/** Device contains partitions */
|
/** Device contains partitions */
|
||||||
KCAS_ERR_CONTAINS_PART,
|
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 */
|
/** Given device is a partition */
|
||||||
KCAS_ERR_A_PART,
|
KCAS_ERR_A_PART,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user