diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2010-02-14 03:21:37 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2010-02-14 03:21:37 +0000 |
commit | 629efc6a893eaf2b5727e5df7feff0fa3b8f874e (patch) | |
tree | 3f1d6df7af467493007b8a0cf3d43fa43768c139 /liblvm/lvm2app.h | |
parent | ed3329eb45b712389aa0282d13dc50b17516240e (diff) | |
download | lvm2-629efc6a893eaf2b5727e5df7feff0fa3b8f874e.tar.gz |
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 <dwysocha@redhat.com>
Diffstat (limited to 'liblvm/lvm2app.h')
-rw-r--r-- | liblvm/lvm2app.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/liblvm/lvm2app.h b/liblvm/lvm2app.h index aeadd7490..442a591a1 100644 --- a/liblvm/lvm2app.h +++ b/liblvm/lvm2app.h @@ -868,6 +868,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. * * NOTE: This function is currently not implemented. |