mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
- Change command name from 'config' to 'configure'.
- Bump version number.
This commit is contained in:
parent
702ac0f112
commit
02692c510d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129548
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user