summaryrefslogtreecommitdiff
path: root/tools/pvcreate.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-02-18 15:38:23 -0600
committerDavid Teigland <teigland@redhat.com>2016-02-25 09:14:10 -0600
commita77ded3001ad584e75bb3b315a8c99c56951e530 (patch)
tree38ab6915717262cb0d00c9538359f186dc578325 /tools/pvcreate.c
parent4de6caf5b5a1b7eef80fc9ed56ac0cf8b7776ac4 (diff)
downloadlvm2-a77ded3001ad584e75bb3b315a8c99c56951e530.tar.gz
replace pvcreate_params with pvcreate_each_params
"pvcreate_each_params" was a temporary name used to transition from the old "pvcreate_params". Remove the old pvcreate_params struct and rename the new pvcreate_each_params struct to pvcreate_params. Rename various pvcreate_each_params terms to simply pvcreate_params.
Diffstat (limited to 'tools/pvcreate.c')
-rw-r--r--tools/pvcreate.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c
index 92356b309..85fed091e 100644
--- a/tools/pvcreate.c
+++ b/tools/pvcreate.c
@@ -22,8 +22,8 @@
* Output arguments:
* pp: structure allocated by caller, fields written / validated here
*/
-static int pvcreate_each_restore_params_from_args(struct cmd_context *cmd, int argc,
- struct pvcreate_each_params *pp)
+static int pvcreate_restore_params_from_args(struct cmd_context *cmd, int argc,
+ struct pvcreate_params *pp)
{
pp->restorefile = arg_str_value(cmd, restorefile_ARG, NULL);
@@ -62,8 +62,8 @@ static int pvcreate_each_restore_params_from_args(struct cmd_context *cmd, int a
return 1;
}
-static int pvcreate_each_restore_params_from_backup(struct cmd_context *cmd,
- struct pvcreate_each_params *pp)
+static int pvcreate_restore_params_from_backup(struct cmd_context *cmd,
+ struct pvcreate_params *pp)
{
struct volume_group *vg;
struct pv_list *existing_pvl;
@@ -99,7 +99,7 @@ static int pvcreate_each_restore_params_from_backup(struct cmd_context *cmd,
int pvcreate(struct cmd_context *cmd, int argc, char **argv)
{
struct processing_handle *handle;
- struct pvcreate_each_params pp;
+ struct pvcreate_params pp;
int ret;
if (!argc) {
@@ -109,7 +109,7 @@ int pvcreate(struct cmd_context *cmd, int argc, char **argv)
/*
* Device info needs to be available for reading the VG backup file in
- * pvcreate_each_restore_params_from_backup.
+ * pvcreate_restore_params_from_backup.
*/
lvmcache_seed_infos_from_lvmetad(cmd);
@@ -123,15 +123,15 @@ int pvcreate(struct cmd_context *cmd, int argc, char **argv)
* 5. argc/argv free args specifying devices
*/
- pvcreate_each_params_set_defaults(&pp);
+ pvcreate_params_set_defaults(&pp);
- if (!pvcreate_each_restore_params_from_args(cmd, argc, &pp))
+ if (!pvcreate_restore_params_from_args(cmd, argc, &pp))
return EINVALID_CMD_LINE;
- if (!pvcreate_each_restore_params_from_backup(cmd, &pp))
+ if (!pvcreate_restore_params_from_backup(cmd, &pp))
return EINVALID_CMD_LINE;
- if (!pvcreate_each_params_from_args(cmd, &pp))
+ if (!pvcreate_params_from_args(cmd, &pp))
return EINVALID_CMD_LINE;
pp.pv_count = argc;