summaryrefslogtreecommitdiffstats
path: root/liblvm/lvm_pv.c
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2009-08-13 12:18:15 +0000
committerDave Wysochanski <dwysocha@redhat.com>2009-08-13 12:18:15 +0000
commite0e7fb8418c2ebdf2fe36f7fb67366dceffd7ed6 (patch)
treeb1550e43f48ad151a6ecf4e5da4082452c8dd9dd /liblvm/lvm_pv.c
parent5d370b1bdd955e86205eade82d2830052be98b9e (diff)
downloadlvm2-e0e7fb8418c2ebdf2fe36f7fb67366dceffd7ed6.tar.gz
lvm2-e0e7fb8418c2ebdf2fe36f7fb67366dceffd7ed6.tar.xz
lvm2-e0e7fb8418c2ebdf2fe36f7fb67366dceffd7ed6.zip
Make lvm2app pv_t handle definition consistent with lvm_t.
This patch update pv_t handle to be consistent with lvm_t - define as a pointer to internal struct physical_volume. Author: Dave Wysochanski <dwysocha@redhat.com>
Diffstat (limited to 'liblvm/lvm_pv.c')
-rw-r--r--liblvm/lvm_pv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/liblvm/lvm_pv.c b/liblvm/lvm_pv.c
index 3d677694..85485971 100644
--- a/liblvm/lvm_pv.c
+++ b/liblvm/lvm_pv.c
@@ -17,7 +17,7 @@
#include "metadata-exported.h"
#include "lvm-string.h"
-char *lvm_pv_get_uuid(const pv_t *pv)
+char *lvm_pv_get_uuid(const pv_t pv)
{
char uuid[64] __attribute((aligned(8)));
@@ -28,7 +28,7 @@ char *lvm_pv_get_uuid(const pv_t *pv)
return strndup((const char *)uuid, 64);
}
-char *lvm_pv_get_name(const pv_t *pv)
+char *lvm_pv_get_name(const pv_t pv)
{
char *name;
@@ -38,12 +38,12 @@ char *lvm_pv_get_name(const pv_t *pv)
return name;
}
-uint64_t lvm_pv_get_mda_count(const pv_t *pv)
+uint64_t lvm_pv_get_mda_count(const pv_t pv)
{
return (uint64_t) pv_mda_count(pv);
}
-int lvm_pv_resize(const pv_t *pv, uint64_t new_size)
+int lvm_pv_resize(const pv_t pv, uint64_t new_size)
{
/* FIXME: add pv resize code here */
log_error("NOT IMPLEMENTED YET");