From ca12090800edef3fa93711de802a3b9f39642ac6 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 25 Jan 2012 13:11:52 +0000 Subject: [PATCH] Thin read percent info from layered device Since we only need layered device - check for tpool device presence, so user doesn't need to activate thin pool explicitely for percent info. --- lib/report/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/report/report.c b/lib/report/report.c index 0c7148e46..97e75b653 100644 --- a/lib/report/report.c +++ b/lib/report/report.c @@ -919,7 +919,7 @@ static int _dtpercent_disp(int metadata, struct dm_report *rh, char *repstr; /* Suppress data percent if not thin pool/volume or not using driver */ - if (!lv_info(lv->vg->cmd, lv, 0, &info, 0, 0) || !info.exists) { + if (!lv_info(lv->vg->cmd, lv, 1, &info, 0, 0) || !info.exists) { dm_report_field_set_value(field, "", NULL); return 1; } -- 2.43.5