summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2014-09-17 15:50:24 +0100
committerAlasdair G Kergon <agk@redhat.com>2014-09-17 15:50:24 +0100
commitb4f5be76a3b8c9c89719e5d8699033a79c993b6f (patch)
tree350036bc7d97aed5905488a6ebd69b19dd673f27
parent98414ca7dd2682b64fec141ae58b4c8ed4367fc7 (diff)
downloadlvm2-b4f5be76a3b8c9c89719e5d8699033a79c993b6f.tar.gz
cleanup: Remove metadata.h from tools dir.
metadata.h is meant to be internal to the library. metadata-exported.h contains the things needed by tools.
-rw-r--r--lib/metadata/metadata-exported.h5
-rw-r--r--lib/metadata/metadata.h5
-rw-r--r--tools/pvmove.c1
-rw-r--r--tools/pvremove.c1
-rw-r--r--tools/vgsplit.c1
5 files changed, 5 insertions, 8 deletions
diff --git a/lib/metadata/metadata-exported.h b/lib/metadata/metadata-exported.h
index 01b04ffc1..0a307ab5c 100644
--- a/lib/metadata/metadata-exported.h
+++ b/lib/metadata/metadata-exported.h
@@ -615,6 +615,10 @@ struct physical_volume *pv_create(const struct cmd_context *cmd,
unsigned metadataignore,
struct pvcreate_restorable_params *rp);
+int pvremove_single(struct cmd_context *cmd, const char *pv_name,
+ void *handle __attribute__((unused)), unsigned force_count,
+ unsigned prompt);
+
int pv_resize_single(struct cmd_context *cmd,
struct volume_group *vg,
struct physical_volume *pv,
@@ -927,6 +931,7 @@ int get_pv_list_for_lv(struct dm_pool *mem,
/* Find LV segment containing given LE */
struct lv_segment *first_seg(const struct logical_volume *lv);
struct lv_segment *last_seg(const struct logical_volume *lv);
+struct lv_segment *get_only_segment_using_this_lv(const struct logical_volume *lv);
/*
* Useful functions for managing snapshots.
diff --git a/lib/metadata/metadata.h b/lib/metadata/metadata.h
index 518dd21d1..439f6b7c7 100644
--- a/lib/metadata/metadata.h
+++ b/lib/metadata/metadata.h
@@ -341,10 +341,6 @@ unsigned long set_pe_align_offset(struct physical_volume *pv,
int pv_write_orphan(struct cmd_context *cmd, struct physical_volume *pv);
-int pvremove_single(struct cmd_context *cmd, const char *pv_name,
- void *handle __attribute__((unused)), unsigned force_count,
- unsigned prompt);
-
struct physical_volume *pvcreate_vol(struct cmd_context *cmd, const char *pv_name,
struct pvcreate_params *pp, int write_now);
@@ -428,7 +424,6 @@ int lv_split_segment(struct logical_volume *lv, uint32_t le);
*/
int add_seg_to_segs_using_this_lv(struct logical_volume *lv, struct lv_segment *seg);
int remove_seg_from_segs_using_this_lv(struct logical_volume *lv, struct lv_segment *seg);
-struct lv_segment *get_only_segment_using_this_lv(const struct logical_volume *lv);
int for_each_sub_lv(struct logical_volume *lv,
int (*fn)(struct logical_volume *lv, void *data),
diff --git a/tools/pvmove.c b/tools/pvmove.c
index a9d750ded..30725844c 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -16,7 +16,6 @@
#include "tools.h"
#include "polldaemon.h"
#include "display.h"
-#include "metadata.h" /* for 'get_only_segment_using_this_lv' */
#define PVMOVE_FIRST_TIME 0x00000001 /* Called for first time */
#define PVMOVE_EXCLUSIVE 0x00000002 /* Require exclusive LV */
diff --git a/tools/pvremove.c b/tools/pvremove.c
index dfd600741..035d4fd4e 100644
--- a/tools/pvremove.c
+++ b/tools/pvremove.c
@@ -14,7 +14,6 @@
*/
#include "tools.h"
-#include "metadata.h"
int pvremove(struct cmd_context *cmd, int argc, char **argv)
{
diff --git a/tools/vgsplit.c b/tools/vgsplit.c
index ad2eb48de..362f85410 100644
--- a/tools/vgsplit.c
+++ b/tools/vgsplit.c
@@ -14,7 +14,6 @@
*/
#include "tools.h"
-#include "metadata.h" /* for 'get_only_segment_using_this_lv' */
static int _lv_is_in_vg(struct volume_group *vg, struct logical_volume *lv)
{