summaryrefslogtreecommitdiffstats
path: root/liblvm/lvm2app.h
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2010-02-14 03:21:37 +0000
committerDave Wysochanski <dwysocha@redhat.com>2010-02-14 03:21:37 +0000
commit629efc6a893eaf2b5727e5df7feff0fa3b8f874e (patch)
tree3f1d6df7af467493007b8a0cf3d43fa43768c139 /liblvm/lvm2app.h
parented3329eb45b712389aa0282d13dc50b17516240e (diff)
downloadlvm2-629efc6a893eaf2b5727e5df7feff0fa3b8f874e.tar.gz
lvm2-629efc6a893eaf2b5727e5df7feff0fa3b8f874e.tar.xz
lvm2-629efc6a893eaf2b5727e5df7feff0fa3b8f874e.zip
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.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/liblvm/lvm2app.h b/liblvm/lvm2app.h
index aeadd749..442a591a 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.