Extend probe informations with cache name.
Since ocf requires loading cache with the same name as it was stopped, it should also allow to read name from metadata. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -330,6 +330,8 @@ static void ocf_metadata_probe_cmpl(struct ocf_metadata_read_sb_ctx *context)
|
||||
status.clean_shutdown = (superblock->clean_shutdown !=
|
||||
ocf_metadata_dirty_shutdown);
|
||||
status.cache_dirty = (superblock->dirty_flushed == DIRTY_NOT_FLUSHED);
|
||||
env_strncpy(status.cache_name, OCF_CACHE_NAME_SIZE, superblock->name,
|
||||
OCF_CACHE_NAME_SIZE);
|
||||
|
||||
OCF_CMPL_RET(priv, 0, &status);
|
||||
}
|
||||
|
Reference in New Issue
Block a user