Return more specific error on CRC mismatch

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2022-03-28 22:42:59 +02:00
parent 84aa968877
commit af43a240d3
4 changed files with 6 additions and 3 deletions

View File

@@ -47,6 +47,9 @@ typedef enum {
/** Metadata on the device doesn't match with metadata in DRAM */
OCF_ERR_SUPERBLOCK_MISMATCH,
/** Metadata checksum is not correct. Metadata is damaged */
OCF_ERR_CRC_MISMATCH,
/** Invalid volume type */
OCF_ERR_INVAL_VOLUME_TYPE,