liblvm2app: correctly return "data_percent" property for thin volumes
PATCH 1/1 liblvm2app: correctly return "data_percent" property for thin volumes
Signed-off-by Tony Asleson <[email protected]>
--- lib/report/properties.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
lib/report/properties.c +5 -1
@@ -104,7 +104,11 @@ static percent_t _data_percent(const struct logical_volume *lv) {percent_t perc; -return lv_thin_pool_percent (lv,0 , &perc) ? perc :PERCENT_INVALID ; +if (lv_is_thin_pool (lv) ) { +return lv_thin_pool_percent (lv,0 , &perc) ? perc :PERCENT_INVALID ; + }else { +return lv_thin_percent (lv,0 , &perc) ? perc :PERCENT_INVALID ; + } }static percent_t _metadata_percent (const struct logical_volume *lv)
Signature · 1 line
1.7.11.4
PATCH 1/1 liblvm2app: correctly return "data_percent" property for thin volumes
I think this relates to https://bugzilla.redhat.com/show_bug.cgi?id=862095
Alasdair