summaryrefslogtreecommitdiff
path: root/tools/pvcreate.c
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2009-11-01 19:51:54 +0000
committerDave Wysochanski <dwysocha@redhat.com>2009-11-01 19:51:54 +0000
commitaccb17389c4c6c52e90eb38f9dc4382f7ca8c0f5 (patch)
tree99b981f3cd3b30239b202ffd5d28e5c71be2295c /tools/pvcreate.c
parent06f97f3be32eab935d3d3dd0969d067f557eaab4 (diff)
downloadlvm2-accb17389c4c6c52e90eb38f9dc4382f7ca8c0f5.tar.gz
Rename pvcreate_params processing functions to better match <object><action>.
Rename fill_default_pvcreate_params to pvcreate_params_set_defaults. Rename pvcreate_validate_restore_params to pvcreate_restore_params_validate. Rename pvcreate_validate_params to pvcreate_params_validate.
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r--tools/pvcreate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c
index 5471c8dfd..efb51a457 100644
--- a/tools/pvcreate.c
+++ b/tools/pvcreate.c
@@ -23,7 +23,7 @@
* Output arguments:
* pp: structure allocated by caller, fields written / validated here
*/
-static int pvcreate_validate_restore_params(struct cmd_context *cmd,
+static int pvcreate_restore_params_validate(struct cmd_context *cmd,
int argc, char **argv,
struct pvcreate_params *pp)
{
@@ -84,12 +84,12 @@ int pvcreate(struct cmd_context *cmd, int argc, char **argv)
int ret = ECMD_PROCESSED;
struct pvcreate_params pp;
- fill_default_pvcreate_params(&pp);
+ pvcreate_params_set_defaults(&pp);
- if (!pvcreate_validate_restore_params(cmd, argc, argv, &pp)) {
+ if (!pvcreate_restore_params_validate(cmd, argc, argv, &pp)) {
return EINVALID_CMD_LINE;
}
- if (!pvcreate_validate_params(cmd, argc, argv, &pp)) {
+ if (!pvcreate_params_validate(cmd, argc, argv, &pp)) {
return EINVALID_CMD_LINE;
}