From 629efc6a893eaf2b5727e5df7feff0fa3b8f874e Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Sun, 14 Feb 2010 03:21:37 +0000 Subject: Export lvm_pv_get_size(), lvm_pv_get_free(), lvm_pv_get_dev_size in lvm2app. We add these exports to show the pv_size and pv_free and dev_size fields. Fixes rhbz561423. Signed-off-by: Dave Wysochanski --- liblvm/lvm2app.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'liblvm/lvm2app.h') diff --git a/liblvm/lvm2app.h b/liblvm/lvm2app.h index aeadd749..442a591a 100644 --- a/liblvm/lvm2app.h +++ b/liblvm/lvm2app.h @@ -867,6 +867,40 @@ char *lvm_pv_get_name(const pv_t pv); */ uint64_t lvm_pv_get_mda_count(const pv_t pv); +/** + * Get the current size in bytes of a device underlying a + * physical volume. + * + * \param pv + * Physical volume handle. + * + * \return + * Size in bytes. + */ +uint64_t lvm_pv_get_dev_size(const pv_t pv); + +/** + * Get the current size in bytes of a physical volume. + * + * \param pv + * Physical volume handle. + * + * \return + * Size in bytes. + */ +uint64_t lvm_pv_get_size(const pv_t pv); + +/** + * Get the current unallocated space in bytes of a physical volume. + * + * \param pv + * Physical volume handle. + * + * \return + * Free size in bytes. + */ +uint64_t lvm_pv_get_free(const pv_t pv); + /** * Resize physical volume to new_size bytes. * -- cgit