Merge pull request #36 from mmichal10/fix-old-metadata-detection

Fix old metadata detection.
This commit is contained in:
Adam Rutkowski 2019-06-13 08:17:14 -04:00 committed by GitHub
commit 6257887e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,7 +384,7 @@ static void cache_mngt_metadata_probe_end(void *priv, int error,
*context->result = error; *context->result = error;
if (error == -ENODATA || error == -EBADF) { if (error == -OCF_ERR_NO_METADATA || error == -OCF_ERR_METADATA_VER) {
cmd_info->is_cache_device = false; cmd_info->is_cache_device = false;
*context->result = 0; *context->result = 0;
} else if (error == 0) { } else if (error == 0) {