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

@@ -88,7 +88,7 @@ void ocf_metadata_check_crc(ocf_pipeline_t pipeline,
ocf_cache_log(cache, log_err,
"Loading %s ERROR, invalid checksum\n",
ocf_metadata_segment_names[segment_id]);
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_INVAL);
OCF_PL_FINISH_RET(pipeline, -OCF_ERR_CRC_MISMATCH);
}
ocf_pipeline_next(pipeline);