Skip to contentSkip to conversation

LVM2/lib/report report.c

PATCH [email protected] 1 participant 1 message Jan 25, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-01-25 13:11:53

Modified files:
lib/report : report.c

Log message:
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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/report.c.diff?cvsroot=lvm2&r1=1.149&r2=1.150

lib/report/report.c +1 -1
@@ -919,7 +919,7 @@
 	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;
 	}