- Change command name from 'config' to 'configure'.

- Bump version number.
This commit is contained in:
Pawel Jakub Dawidek 2004-05-21 15:23:48 +00:00
parent 702ac0f112
commit 02692c510d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129548
3 changed files with 7 additions and 7 deletions

View File

@ -47,7 +47,7 @@ struct g_command class_commands[] = {
G_OPT_SENTINEL
}
},
{ "config", G_FLAG_VERBOSE, NULL,
{ "configure", G_FLAG_VERBOSE, NULL,
{
{ 'f', "failprob", &failprob, G_TYPE_NUMBER },
G_OPT_SENTINEL
@ -68,6 +68,6 @@ usage(const char *name)
{
fprintf(stderr, "usage: %s create [-v] [-f failprob] <dev1> [dev2 [...]]\n", name);
fprintf(stderr, " %s config [-v] [-f failprob] <dev1> [dev2 [...]]\n", name);
fprintf(stderr, " %s destroy [-fv] <dev1> [dev2 [...]]\n", name);
fprintf(stderr, " %s configure [-v] [-f failprob] <prov1> [prov2 [...]]\n", name);
fprintf(stderr, " %s destroy [-fv] <prov1> [prov2 [...]]\n", name);
}

View File

@ -266,7 +266,7 @@ g_nop_ctl_create(struct gctl_req *req, struct g_class *mp)
}
static void
g_nop_ctl_config(struct gctl_req *req, struct g_class *mp)
g_nop_ctl_configure(struct gctl_req *req, struct g_class *mp)
{
struct g_provider *pp;
intmax_t *failprob;
@ -395,8 +395,8 @@ g_nop_config(struct gctl_req *req, struct g_class *mp, const char *verb)
if (strcmp(verb, "create") == 0) {
g_nop_ctl_create(req, mp);
return;
} else if (strcmp(verb, "config") == 0) {
g_nop_ctl_config(req, mp);
} else if (strcmp(verb, "configure") == 0) {
g_nop_ctl_configure(req, mp);
return;
} else if (strcmp(verb, "destroy") == 0) {
g_nop_ctl_destroy(req, mp);

View File

@ -30,7 +30,7 @@
#define _G_NOP_H_
#define G_NOP_CLASS_NAME "NOP"
#define G_NOP_VERSION 0
#define G_NOP_VERSION 1
#define G_NOP_SUFFIX ".nop"
#ifdef _KERNEL