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

@@ -23,6 +23,7 @@ class OcfErrorCode(IntEnum):
OCF_ERR_NO_METADATA = auto()
OCF_ERR_METADATA_FOUND = auto()
OCF_ERR_SUPERBLOCK_MISMATCH = auto()
OCF_ERR_CRC_MISMATCH = auto()
OCF_ERR_INVAL_VOLUME_TYPE = auto()
OCF_ERR_UNKNOWN = auto()
OCF_ERR_TOO_MANY_CACHES = auto()