Return error on start when detected old metadata of not flushed cache.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2019-03-29 11:22:49 -04:00
parent 05be94f7e5
commit a1075f7cf6

View File

@ -959,7 +959,7 @@ static void _ocf_mngt_attach_load_properties_end(void *priv, int error,
}
context->metadata.shutdown_status = properties->shutdown_status;
context->metadata.dirty_flushed = properties->shutdown_status;
context->metadata.dirty_flushed = properties->dirty_flushed;
if (cache->device->init_mode == ocf_init_mode_load) {
context->metadata.line_size = properties->line_size;