[lvm-devel] master - properties: fix data_usage typo

Zdenek Kabelac zkabelac at sourceware.org
Tue Oct 20 20:34:06 UTC 2020


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=58976ccc34f9c60471e630666417a1fcef4d9799
Commit:        58976ccc34f9c60471e630666417a1fcef4d9799
Parent:        d2bdad28d1d1ad337a6c876c235797dbf6907886
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Fri Oct 16 17:51:23 2020 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Oct 19 16:53:18 2020 +0200

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.
---
 lib/report/properties.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 		}
 	}




More information about the lvm-devel mailing list