Return more specific error on metadata CRC mismatch

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2022-03-28 23:16:50 +02:00
parent eae8bf92e5
commit 9ec3ce30e2
2 changed files with 5 additions and 1 deletions

View File

@@ -158,6 +158,10 @@ struct {
OCF_ERR_SUPERBLOCK_MISMATCH,
"Metadata on the device doesn't match with metadata in DRAM"
},
{
OCF_ERR_CRC_MISMATCH,
"Metadata checksum is not correct. Metadata is damaged"
},
{
OCF_ERR_CACHE_NAME_MISMATCH,
"Cache id specified by user and loaded from metadata are different"

2
ocf

Submodule ocf updated: 174f7b5c2b...cf2d4327a1