Fix for casadm output when listing detached cache

Fix for issue #1020 - make casadm produce a meaningful output when
listing a detached cache

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
This commit is contained in:
Krzysztof Majzerowicz-Jaszcz
2022-01-13 18:24:22 +01:00
parent 1742841ee3
commit 72b67aefdd
3 changed files with 15 additions and 9 deletions

View File

@@ -589,7 +589,7 @@ int cache_stats_conf(int ctrl_fd, const struct kcas_cache_info *cache_info,
"Flushing", flush_progress);
} else {
print_kv_pair(outfile, "Status", "%s",
get_cache_state_name(cache_info->info.state));
get_cache_state_name(cache_info->info.state, cache_info->info.standby_detached));
}
return SUCCESS;