From 98419e06670493523ee08ea8e10b222deb253f7c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 4 Oct 2019 16:57:54 +0200 Subject: [PATCH] display: try to show status for inactive vdopool Since we now support activation of 'vdo' volume without explicit activation of 'vdopool' it's now possible to have active layer vdopool (-vpool) volume and having vdopool itself inactive - yet still in this case we can show available stats for this volume. But we need to show correct activation status and other standard info. --- lib/display/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/display/display.c b/lib/display/display.c index 913bced34..36c9879b3 100644 --- a/lib/display/display.c +++ b/lib/display/display.c @@ -533,7 +533,7 @@ int lvdisplay_full(struct cmd_context *cmd, } else if (lv_is_vdo_pool(lv)) { seg = first_seg(lv); log_print("LV VDO Pool data %s", seg_lv(seg, 0)->name); - if (inkernel && lv_vdo_pool_status(lv, 0, &vdo_status)) { /* FIXME: flush option? */ + if (lv_vdo_pool_status(lv, 0, &vdo_status)) { /* FIXME: flush option? */ log_print("LV VDO Pool usage %s%%", display_percent(cmd, vdo_status->usage)); log_print("LV VDO Pool saving %s%%",