From 0a46160d94524cca9d07e2d183d62ff6df1ec48e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 11 Oct 2012 17:25:14 +0200 Subject: [PATCH] lvm2api: add defined lvm_percent_to_float Implement function which was somehow missing from it's original placement in the header file lvm2api.h. --- WHATS_NEW | 1 + liblvm/lvm_base.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index 5a3364a7b..d61427045 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.98 - ================================= + Add implementation of lvm2api function lvm_percent_to_float. Allow non power of 2 thin chunk sizes if thin pool driver supports that. Allow limited metadata changes when PVs are missing via [vg|lv]change. Do not start dmeventd for lvchange --resync when monitoring is off. diff --git a/liblvm/lvm_base.c b/liblvm/lvm_base.c index 815151e60..01ea0d711 100644 --- a/liblvm/lvm_base.c +++ b/liblvm/lvm_base.c @@ -126,3 +126,8 @@ const char *lvm_vgname_from_device(lvm_t libh, const char *device) struct cmd_context *cmd = (struct cmd_context *)libh; return find_vgname_from_pvname(cmd, device); } + +float lvm_percent_to_float(percent_t v) +{ + return percent_to_float(v); +}