diff --git a/inc/ocf_metadata.h b/inc/ocf_metadata.h index cd4798a..35bbd5d 100644 --- a/inc/ocf_metadata.h +++ b/inc/ocf_metadata.h @@ -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]; }; diff --git a/src/metadata/metadata.c b/src/metadata/metadata.c index 9c033df..3296532 100644 --- a/src/metadata/metadata.c +++ b/src/metadata/metadata.c @@ -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); }