Skip to contentSkip to conversation

master - properties: fix data_usage typo

PATCH Zdenek Kabelac 1 participant 1 message Oct 20, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=58976ccc34f9c60471e630666417a1fcef4d9799
Commit:        58976ccc34f9c60471e630666417a1fcef4d9799
Parent:        d2bdad28d1d1ad337a6c876c235797dbf6907886
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Oct 16 17:51:23 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
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(-)
lib/report/properties.c +1 -1
index ef2888f50..c013152f2 100644
@@ -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);
 		}
 	}