1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

cache: report for succesful status

This commit is contained in:
Zdenek Kabelac 2019-10-01 13:31:36 +02:00
parent 667b33dd3b
commit cb5f0bdba9

View File

@ -522,10 +522,10 @@ int lvdisplay_full(struct cmd_context *cmd,
log_print("LV origin of Cache LV %s", seg->lv->name);
} else if (lv_is_cache(lv)) {
seg = first_seg(lv);
if (inkernel && !lv_cache_status(lv, &cache_status))
return_0;
if (inkernel && lv_cache_status(lv, &cache_status)) {
log_print("LV Cache pool name %s", seg->pool_lv->name);
log_print("LV Cache origin name %s", seg_lv(seg, 0)->name);
}
} else if (lv_is_cache_pool(lv)) {
seg = first_seg(lv);
log_print("LV Pool metadata %s", seg->metadata_lv->name);