diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2008-01-15 22:56:30 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2008-01-15 22:56:30 +0000 |
commit | 8868a4ffc27ecc26827e3ea2bf5ba52e2d5efb30 (patch) | |
tree | ebf95badec09210465990b858da8dfeb7c9d21c9 /tools/toollib.h | |
parent | d6d46615179aba34e1f77a426e65d5e5d28ccdb4 (diff) | |
download | lvm2-8868a4ffc27ecc26827e3ea2bf5ba52e2d5efb30.tar.gz lvm2-8868a4ffc27ecc26827e3ea2bf5ba52e2d5efb30.tar.xz lvm2-8868a4ffc27ecc26827e3ea2bf5ba52e2d5efb30.zip |
Move more parameter validation into the library.
Update vgrename to call validate_vg_rename_params().
Fix vgcreate and vgsplit default arguments by adding defaults parameter to
fill_vg_create_params().
Add t-vgrename-usage.sh test.
Bugzilla: bz251992
---
tools/toollib.c | 32 ++++++++------------------------
tools/toollib.h | 5 ++---
tools/vgcreate.c | 35 +++++++++++++++++++++--------------
tools/vgrename.c | 35 ++++++-----------------------------
tools/vgsplit.c | 21 ++++++++++++++-------
5 files changed, 51 insertions(+), 77 deletions(-)
Diffstat (limited to 'tools/toollib.h')
-rw-r--r-- | tools/toollib.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/toollib.h b/tools/toollib.h index b8830d22..6a89867d 100644 --- a/tools/toollib.h +++ b/tools/toollib.h @@ -96,8 +96,7 @@ struct list *clone_pv_list(struct dm_pool *mem, struct list *pvs); int apply_lvname_restrictions(const char *name); -int validate_new_vg_name(struct cmd_context *cmd, const char *vg_name); - int fill_vg_create_params(struct cmd_context *cmd, - char *vg_name, struct vgcreate_params *vp); + char *vg_name, struct vgcreate_params *vp_new, + struct vgcreate_params *vp_def); #endif |