Include cache mode and cache line size in metadata probe
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
parent
c6644116ae
commit
8522b0b6e6
@ -61,7 +61,13 @@ struct ocf_metadata_probe_status {
|
||||
/** Cache contains dirty data */
|
||||
bool cache_dirty;
|
||||
|
||||
/** Loaded name of cache instance */
|
||||
/** Probed cache line size */
|
||||
ocf_cache_line_size_t cache_line_size;
|
||||
|
||||
/** probed cache mode */
|
||||
ocf_cache_mode_t cache_mode;
|
||||
|
||||
/** Probed name of cache instance */
|
||||
char cache_name[OCF_CACHE_NAME_SIZE];
|
||||
};
|
||||
|
||||
|
@ -1957,6 +1957,8 @@ static void ocf_metadata_probe_cmpl(struct ocf_metadata_read_sb_ctx *context)
|
||||
|
||||
env_strncpy(status.cache_name, OCF_CACHE_NAME_SIZE, superblock->name,
|
||||
OCF_CACHE_NAME_SIZE);
|
||||
status.cache_mode = superblock->cache_mode;
|
||||
status.cache_line_size = superblock->line_size;
|
||||
|
||||
OCF_CMPL_RET(priv, 0, &status);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user