1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-08-30 05:50:08 +03:00

virsh: Convert VSH_POOL_ macro to VIRSH_COMMON_OPT_

Commit id's 'cf793b00', 'e178688f', 'f9a6110f', '5372d49', and 'e193735'
added new VSH_POOL_ macros; however, it was pointed out after push that
commit id '834c5720' preferred use of VIRSH_ for the prefix over VSH_.

So this patch just changes the VSH_ to VIRSH_ and it changes the naming
format from VIRSH_<opt>_OPT_COMMON to VIRSH_COMMON_OPT_<opt>.

Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
John Ferlan
2016-01-09 08:36:22 -05:00
parent 21e63916dc
commit f688b808ad

View File

@ -1,7 +1,7 @@
/* /*
* virsh-pool.c: Commands to manage storage pool * virsh-pool.c: Commands to manage storage pool
* *
* Copyright (C) 2005, 2007-2015 Red Hat, Inc. * Copyright (C) 2005, 2007-2016 Red Hat, Inc.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -33,42 +33,42 @@
#include "conf/storage_conf.h" #include "conf/storage_conf.h"
#include "virstring.h" #include "virstring.h"
#define VSH_POOL_OPT_COMMON \ #define VIRSH_COMMON_OPT_POOL \
{.name = "pool", \ {.name = "pool", \
.type = VSH_OT_DATA, \ .type = VSH_OT_DATA, \
.flags = VSH_OFLAG_REQ, \ .flags = VSH_OFLAG_REQ, \
.help = N_("pool name or uuid") \ .help = N_("pool name or uuid") \
} \ } \
#define VSH_POOL_FILE_OPT_COMMON \ #define VIRSH_COMMON_OPT_POOL_FILE \
{.name = "file", \ {.name = "file", \
.type = VSH_OT_DATA, \ .type = VSH_OT_DATA, \
.flags = VSH_OFLAG_REQ, \ .flags = VSH_OFLAG_REQ, \
.help = N_("file containing an XML pool description") \ .help = N_("file containing an XML pool description") \
} \ } \
#define VSH_POOL_BUILD_OPT_COMMON \ #define VIRSH_COMMON_OPT_POOL_BUILD \
{.name = "build", \ {.name = "build", \
.type = VSH_OT_BOOL, \ .type = VSH_OT_BOOL, \
.flags = 0, \ .flags = 0, \
.help = N_("build the pool as normal") \ .help = N_("build the pool as normal") \
} \ } \
#define VSH_POOL_NO_OVERWRITE_OPT_COMMON \ #define VIRSH_COMMON_OPT_POOL_NO_OVERWRITE \
{.name = "no-overwrite", \ {.name = "no-overwrite", \
.type = VSH_OT_BOOL, \ .type = VSH_OT_BOOL, \
.flags = 0, \ .flags = 0, \
.help = N_("do not overwrite an existing pool of this type") \ .help = N_("do not overwrite an existing pool of this type") \
} \ } \
#define VSH_POOL_OVERWRITE_OPT_COMMON \ #define VIRSH_COMMON_OPT_POOL_OVERWRITE \
{.name = "overwrite", \ {.name = "overwrite", \
.type = VSH_OT_BOOL, \ .type = VSH_OT_BOOL, \
.flags = 0, \ .flags = 0, \
.help = N_("overwrite any existing data") \ .help = N_("overwrite any existing data") \
} \ } \
#define VSH_POOL_X_AS_OPT_COMMON \ #define VIRSH_COMMON_OPT_POOL_X_AS \
{.name = "name", \ {.name = "name", \
.type = VSH_OT_DATA, \ .type = VSH_OT_DATA, \
.flags = VSH_OFLAG_REQ, \ .flags = VSH_OFLAG_REQ, \
@ -188,7 +188,7 @@ static const vshCmdInfo info_pool_autostart[] = {
}; };
static const vshCmdOptDef opts_pool_autostart[] = { static const vshCmdOptDef opts_pool_autostart[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = "disable", {.name = "disable",
.type = VSH_OT_BOOL, .type = VSH_OT_BOOL,
@ -241,10 +241,10 @@ static const vshCmdInfo info_pool_create[] = {
}; };
static const vshCmdOptDef opts_pool_create[] = { static const vshCmdOptDef opts_pool_create[] = {
VSH_POOL_FILE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_FILE,
VSH_POOL_BUILD_OPT_COMMON, VIRSH_COMMON_OPT_POOL_BUILD,
VSH_POOL_NO_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_NO_OVERWRITE,
VSH_POOL_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_OVERWRITE,
{.name = NULL} {.name = NULL}
}; };
@ -297,7 +297,7 @@ cmdPoolCreate(vshControl *ctl, const vshCmd *cmd)
} }
static const vshCmdOptDef opts_pool_define_as[] = { static const vshCmdOptDef opts_pool_define_as[] = {
VSH_POOL_X_AS_OPT_COMMON, VIRSH_COMMON_OPT_POOL_X_AS,
{.name = NULL} {.name = NULL}
}; };
@ -413,10 +413,10 @@ static const vshCmdInfo info_pool_create_as[] = {
}; };
static const vshCmdOptDef opts_pool_create_as[] = { static const vshCmdOptDef opts_pool_create_as[] = {
VSH_POOL_X_AS_OPT_COMMON, VIRSH_COMMON_OPT_POOL_X_AS,
VSH_POOL_BUILD_OPT_COMMON, VIRSH_COMMON_OPT_POOL_BUILD,
VSH_POOL_NO_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_NO_OVERWRITE,
VSH_POOL_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_OVERWRITE,
{.name = NULL} {.name = NULL}
}; };
@ -484,7 +484,7 @@ static const vshCmdInfo info_pool_define[] = {
}; };
static const vshCmdOptDef opts_pool_define[] = { static const vshCmdOptDef opts_pool_define[] = {
VSH_POOL_FILE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_FILE,
{.name = NULL} {.name = NULL}
}; };
@ -575,9 +575,9 @@ static const vshCmdInfo info_pool_build[] = {
}; };
static const vshCmdOptDef opts_pool_build[] = { static const vshCmdOptDef opts_pool_build[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
VSH_POOL_NO_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_NO_OVERWRITE,
VSH_POOL_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_OVERWRITE,
{.name = NULL} {.name = NULL}
}; };
@ -625,7 +625,7 @@ static const vshCmdInfo info_pool_destroy[] = {
}; };
static const vshCmdOptDef opts_pool_destroy[] = { static const vshCmdOptDef opts_pool_destroy[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };
@ -665,7 +665,7 @@ static const vshCmdInfo info_pool_delete[] = {
}; };
static const vshCmdOptDef opts_pool_delete[] = { static const vshCmdOptDef opts_pool_delete[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };
@ -705,7 +705,7 @@ static const vshCmdInfo info_pool_refresh[] = {
}; };
static const vshCmdOptDef opts_pool_refresh[] = { static const vshCmdOptDef opts_pool_refresh[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };
@ -745,7 +745,7 @@ static const vshCmdInfo info_pool_dumpxml[] = {
}; };
static const vshCmdOptDef opts_pool_dumpxml[] = { static const vshCmdOptDef opts_pool_dumpxml[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = "inactive", {.name = "inactive",
.type = VSH_OT_BOOL, .type = VSH_OT_BOOL,
@ -1596,7 +1596,7 @@ static const vshCmdInfo info_pool_info[] = {
}; };
static const vshCmdOptDef opts_pool_info[] = { static const vshCmdOptDef opts_pool_info[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };
@ -1673,7 +1673,7 @@ static const vshCmdInfo info_pool_name[] = {
}; };
static const vshCmdOptDef opts_pool_name[] = { static const vshCmdOptDef opts_pool_name[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };
@ -1705,10 +1705,10 @@ static const vshCmdInfo info_pool_start[] = {
}; };
static const vshCmdOptDef opts_pool_start[] = { static const vshCmdOptDef opts_pool_start[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
VSH_POOL_BUILD_OPT_COMMON, VIRSH_COMMON_OPT_POOL_BUILD,
VSH_POOL_NO_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_NO_OVERWRITE,
VSH_POOL_OVERWRITE_OPT_COMMON, VIRSH_COMMON_OPT_POOL_OVERWRITE,
{.name = NULL} {.name = NULL}
}; };
@ -1766,7 +1766,7 @@ static const vshCmdInfo info_pool_undefine[] = {
}; };
static const vshCmdOptDef opts_pool_undefine[] = { static const vshCmdOptDef opts_pool_undefine[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };
@ -1806,7 +1806,7 @@ static const vshCmdInfo info_pool_uuid[] = {
}; };
static const vshCmdOptDef opts_pool_uuid[] = { static const vshCmdOptDef opts_pool_uuid[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };
@ -1843,7 +1843,7 @@ static const vshCmdInfo info_pool_edit[] = {
}; };
static const vshCmdOptDef opts_pool_edit[] = { static const vshCmdOptDef opts_pool_edit[] = {
VSH_POOL_OPT_COMMON, VIRSH_COMMON_OPT_POOL,
{.name = NULL} {.name = NULL}
}; };