master - vgreduce: Move _vgreduce_single functionality
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fe474e1452866476b7f17175d92417d6d827ae4c Commit: fe474e1452866476b7f17175d92417d6d827ae4c Parent: 20ffb0f721e72fb25905e9ae77689e901babf4ce Author: Tony Asleson <[email protected]> AuthorDate: Tue Sep 3 17:31:45 2013 -0500 Committer: Tony Asleson <[email protected]> CommitterDate: Tue Nov 19 14:40:28 2013 -0600
vgreduce: Move _vgreduce_single functionality
Moving the core functionality of vgreduce single into lib/metadata/vg.c so that the command line and lvm2app library can call the same core functionality. New function is vgreduce_single.
Signed-off-by Tony Asleson <[email protected]>
--- lib/metadata/metadata-exported.h | 4 ++ lib/metadata/vg.c | 87 ++++++++++++++++++++++++++++++++++++++ tools/vgreduce.c | 81 ++--------------------------------- 3 files changed, 95 insertions(+), 77 deletions(-)
lib/metadata/metadata-exported.h +4 -0
@@ -592,6 +592,10 @@ int vg_rename(struct cmd_context *cmd, struct volume_group *vg,int vg_extend (struct volume_group *vg,int pv_count,const char *const *pv_names,struct pvcreate_params *pp);int vg_reduce (struct volume_group *vg,const char *pv_name); + +int vgreduce_single (struct cmd_context *cmd,struct volume_group *vg, +struct physical_volume *pv); +int vg_change_tag (struct volume_group *vg,const char *tag,int add_tag);int vg_split_mdas (struct cmd_context *cmd,struct volume_group *vg_from,struct volume_group *vg_to);
lib/metadata/vg.c +87 -0
96 lines not on this page · raw message
tools/vgreduce.c +4 -77
92 lines not on this page · raw message