master - cleanup: Remove metadata.h from tools dir.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b4f5be76a3b8c9c89719e5d8699033a79c993b6f Commit: b4f5be76a3b8c9c89719e5d8699033a79c993b6f Parent: 98414ca7dd2682b64fec141ae58b4c8ed4367fc7 Author: Alasdair G Kergon <[email protected]> AuthorDate: Wed Sep 17 15:50:24 2014 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Wed Sep 17 15:50:24 2014 +0100
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.
--- lib/metadata/metadata-exported.h | 5 +++++ lib/metadata/metadata.h | 5 ----- tools/pvmove.c | 1 - tools/pvremove.c | 1 - tools/vgsplit.c | 1 - 5 files changed, 5 insertions(+), 8 deletions(-)
lib/metadata/metadata-exported.h +5 -0
@@ -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.
lib/metadata/metadata.h +0 -5
@@ -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),
tools/pvmove.c +0 -1
@@ -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 */
tools/pvremove.c +0 -1
@@ -14,7 +14,6 @@*/ #include "tools.h" -#include "metadata.h" int pvremove (struct cmd_context *cmd,int argc,char **argv) {
tools/vgsplit.c +0 -1
@@ -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) {