1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-28 05:57:49 +03:00

Rename validate_vg_create_params to vgcreate_params_validate.

This commit is contained in:
Dave Wysochanski 2009-11-01 20:05:17 +00:00
parent c2235a0baa
commit b102455b57
4 changed files with 6 additions and 6 deletions

View File

@ -749,8 +749,8 @@ struct vgcreate_params {
int clustered; /* FIXME: put this into a 'status' variable instead? */
};
int validate_vg_create_params(struct cmd_context *cmd,
struct vgcreate_params *vp);
int vgcreate_params_validate(struct cmd_context *cmd,
struct vgcreate_params *vp);
int validate_vg_rename_params(struct cmd_context *cmd,
const char *vg_name_old,

View File

@ -679,8 +679,8 @@ const char *strip_dir(const char *vg_name, const char *dev_dir)
* FIXME: Move inside vg_create library function.
* FIXME: Change vgcreate_params struct to individual gets/sets
*/
int validate_vg_create_params(struct cmd_context *cmd,
struct vgcreate_params *vp)
int vgcreate_params_validate(struct cmd_context *cmd,
struct vgcreate_params *vp)
{
if (!validate_new_vg_name(cmd, vp->vg_name)) {
log_error("New volume group name \"%s\" is invalid",

View File

@ -50,7 +50,7 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv)
if (vgcreate_params_set_from_args(cmd, &vp_new, &vp_def))
return EINVALID_CMD_LINE;
if (validate_vg_create_params(cmd, &vp_new))
if (vgcreate_params_validate(cmd, &vp_new))
return EINVALID_CMD_LINE;
/* Create the new VG */

View File

@ -373,7 +373,7 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
goto_bad;
}
if (validate_vg_create_params(cmd, &vp_new)) {
if (vgcreate_params_validate(cmd, &vp_new)) {
r = EINVALID_CMD_LINE;
goto_bad;
}