Merge pull request #92 from mmichal10/fix-preventing-metadata-override
Return error on start when detected old metadata of not flushed cache.
This commit is contained in:
commit
7e9ff6456d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user