summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2020-10-16 17:51:23 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2020-10-19 16:53:18 +0200
commit58976ccc34f9c60471e630666417a1fcef4d9799 (patch)
treebdadbdc6588caa03219fdcbc49e7ab388f785b66
parentd2bdad28d1d1ad337a6c876c235797dbf6907886 (diff)
downloadlvm2-58976ccc34f9c60471e630666417a1fcef4d9799.tar.gz
properties: fix data_usage typo
Patch 4de6f58085c533c79ce2e0db6cdeb6ed06fe05f8 introduce typo, we need to use data_usage. Note: this code was used by lvmapp library and currently is unused.
-rw-r--r--lib/report/properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/report/properties.c b/lib/report/properties.c
index ef2888f50..c013152f2 100644
--- a/lib/report/properties.c
+++ b/lib/report/properties.c
@@ -168,7 +168,7 @@ static dm_percent_t _data_percent(const struct logical_volume *lv)
if (!lv_thin_pool_status(lv, 0, &thin_pool_status))
stack;
else {
- percent = thin_pool_status->metadata_usage;
+ percent = thin_pool_status->data_usage;
dm_pool_destroy(thin_pool_status->mem);
}
}