mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-03 15:43:51 +00:00
Cleanup useless flags specifications
After we switched to C99 initialization, I noticed there were many places where the specification of .flags parameter differed. After going through many options and deciding whether to unify the initialization to be '.flags = 0' or '.flags = VSH_OFLAG_NONE', I realized both can be removed and it makes the code easier to go through.
This commit is contained in:
parent
66f1bbc350
commit
73cc87d161
@ -425,12 +425,10 @@ static const vshCmdOptDef opts_domblklist[] = {
|
|||||||
},
|
},
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("get inactive rather than running configuration")
|
.help = N_("get inactive rather than running configuration")
|
||||||
},
|
},
|
||||||
{.name = "details",
|
{.name = "details",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("additionally display the type and device value")
|
.help = N_("additionally display the type and device value")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -541,7 +539,6 @@ static const vshCmdOptDef opts_domiflist[] = {
|
|||||||
},
|
},
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("get inactive rather than running configuration")
|
.help = N_("get inactive rather than running configuration")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -652,12 +649,10 @@ static const vshCmdOptDef opts_domif_getlink[] = {
|
|||||||
},
|
},
|
||||||
{.name = "persistent",
|
{.name = "persistent",
|
||||||
.type = VSH_OT_ALIAS,
|
.type = VSH_OT_ALIAS,
|
||||||
.flags = 0,
|
|
||||||
.help = "config"
|
.help = "config"
|
||||||
},
|
},
|
||||||
{.name = "config",
|
{.name = "config",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("Get persistent interface state")
|
.help = N_("Get persistent interface state")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -848,7 +843,6 @@ static const vshCmdOptDef opts_domblkstat[] = {
|
|||||||
},
|
},
|
||||||
{.name = "human",
|
{.name = "human",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("print a more human readable output")
|
.help = N_("print a more human readable output")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1311,7 +1305,6 @@ static const vshCmdOptDef opts_domstate[] = {
|
|||||||
},
|
},
|
||||||
{.name = "reason",
|
{.name = "reason",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("also print reason for the state")
|
.help = N_("also print reason for the state")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1638,97 +1631,78 @@ cleanup:
|
|||||||
static const vshCmdOptDef opts_list[] = {
|
static const vshCmdOptDef opts_list[] = {
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive domains")
|
.help = N_("list inactive domains")
|
||||||
},
|
},
|
||||||
{.name = "all",
|
{.name = "all",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive & active domains")
|
.help = N_("list inactive & active domains")
|
||||||
},
|
},
|
||||||
{.name = "transient",
|
{.name = "transient",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list transient domains")
|
.help = N_("list transient domains")
|
||||||
},
|
},
|
||||||
{.name = "persistent",
|
{.name = "persistent",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list persistent domains")
|
.help = N_("list persistent domains")
|
||||||
},
|
},
|
||||||
{.name = "with-snapshot",
|
{.name = "with-snapshot",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains with existing snapshot")
|
.help = N_("list domains with existing snapshot")
|
||||||
},
|
},
|
||||||
{.name = "without-snapshot",
|
{.name = "without-snapshot",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains without a snapshot")
|
.help = N_("list domains without a snapshot")
|
||||||
},
|
},
|
||||||
{.name = "state-running",
|
{.name = "state-running",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains in running state")
|
.help = N_("list domains in running state")
|
||||||
},
|
},
|
||||||
{.name = "state-paused",
|
{.name = "state-paused",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains in paused state")
|
.help = N_("list domains in paused state")
|
||||||
},
|
},
|
||||||
{.name = "state-shutoff",
|
{.name = "state-shutoff",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains in shutoff state")
|
.help = N_("list domains in shutoff state")
|
||||||
},
|
},
|
||||||
{.name = "state-other",
|
{.name = "state-other",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains in other states")
|
.help = N_("list domains in other states")
|
||||||
},
|
},
|
||||||
{.name = "autostart",
|
{.name = "autostart",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains with autostart enabled")
|
.help = N_("list domains with autostart enabled")
|
||||||
},
|
},
|
||||||
{.name = "no-autostart",
|
{.name = "no-autostart",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains with autostart disabled")
|
.help = N_("list domains with autostart disabled")
|
||||||
},
|
},
|
||||||
{.name = "with-managed-save",
|
{.name = "with-managed-save",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains with managed save state")
|
.help = N_("list domains with managed save state")
|
||||||
},
|
},
|
||||||
{.name = "without-managed-save",
|
{.name = "without-managed-save",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domains without managed save")
|
.help = N_("list domains without managed save")
|
||||||
},
|
},
|
||||||
{.name = "uuid",
|
{.name = "uuid",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list uuid's only")
|
.help = N_("list uuid's only")
|
||||||
},
|
},
|
||||||
{.name = "name",
|
{.name = "name",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list domain names only")
|
.help = N_("list domain names only")
|
||||||
},
|
},
|
||||||
{.name = "table",
|
{.name = "table",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list table (default)")
|
.help = N_("list table (default)")
|
||||||
},
|
},
|
||||||
{.name = "managed-save",
|
{.name = "managed-save",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("mark inactive domains with managed save state")
|
.help = N_("mark inactive domains with managed save state")
|
||||||
},
|
},
|
||||||
{.name = "title",
|
{.name = "title",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("show short domain description")
|
.help = N_("show short domain description")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -89,7 +89,6 @@ static const vshCmdOptDef opts_connect[] = {
|
|||||||
},
|
},
|
||||||
{.name = "readonly",
|
{.name = "readonly",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("read-only connection")
|
.help = N_("read-only connection")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -145,12 +144,10 @@ static const vshCmdInfo info_freecell[] = {
|
|||||||
static const vshCmdOptDef opts_freecell[] = {
|
static const vshCmdOptDef opts_freecell[] = {
|
||||||
{.name = "cellno",
|
{.name = "cellno",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("NUMA cell number")
|
.help = N_("NUMA cell number")
|
||||||
},
|
},
|
||||||
{.name = "all",
|
{.name = "all",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("show free memory for all NUMA cells")
|
.help = N_("show free memory for all NUMA cells")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -358,12 +355,10 @@ static const vshCmdInfo info_nodecpustats[] = {
|
|||||||
static const vshCmdOptDef opts_node_cpustats[] = {
|
static const vshCmdOptDef opts_node_cpustats[] = {
|
||||||
{.name = "cpu",
|
{.name = "cpu",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("prints specified cpu statistics only.")
|
.help = N_("prints specified cpu statistics only.")
|
||||||
},
|
},
|
||||||
{.name = "percent",
|
{.name = "percent",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("prints by percentage during 1 second.")
|
.help = N_("prints by percentage during 1 second.")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -495,7 +490,6 @@ static const vshCmdInfo info_nodememstats[] = {
|
|||||||
static const vshCmdOptDef opts_node_memstats[] = {
|
static const vshCmdOptDef opts_node_memstats[] = {
|
||||||
{.name = "cell",
|
{.name = "cell",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("prints specified cell statistics only.")
|
.help = N_("prints specified cell statistics only.")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -718,7 +712,6 @@ static const vshCmdInfo info_version[] = {
|
|||||||
static const vshCmdOptDef opts_version[] = {
|
static const vshCmdOptDef opts_version[] = {
|
||||||
{.name = "daemon",
|
{.name = "daemon",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("report daemon version too")
|
.help = N_("report daemon version too")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -817,19 +810,16 @@ static const vshCmdInfo info_node_memory_tune[] = {
|
|||||||
static const vshCmdOptDef opts_node_memory_tune[] = {
|
static const vshCmdOptDef opts_node_memory_tune[] = {
|
||||||
{.name = "shm-pages-to-scan",
|
{.name = "shm-pages-to-scan",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("number of pages to scan before the shared memory service "
|
.help = N_("number of pages to scan before the shared memory service "
|
||||||
"goes to sleep")
|
"goes to sleep")
|
||||||
},
|
},
|
||||||
{.name = "shm-sleep-millisecs",
|
{.name = "shm-sleep-millisecs",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("number of millisecs the shared memory service should "
|
.help = N_("number of millisecs the shared memory service should "
|
||||||
"sleep before next scan")
|
"sleep before next scan")
|
||||||
},
|
},
|
||||||
{.name = "shm-merge-across-nodes",
|
{.name = "shm-merge-across-nodes",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("Specifies if pages from different numa nodes can be merged")
|
.help = N_("Specifies if pages from different numa nodes can be merged")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -325,12 +325,10 @@ static const vshCmdInfo info_interface_list[] = {
|
|||||||
static const vshCmdOptDef opts_interface_list[] = {
|
static const vshCmdOptDef opts_interface_list[] = {
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive interfaces")
|
.help = N_("list inactive interfaces")
|
||||||
},
|
},
|
||||||
{.name = "all",
|
{.name = "all",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive & active interfaces")
|
.help = N_("list inactive & active interfaces")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -464,7 +462,6 @@ static const vshCmdOptDef opts_interface_dumpxml[] = {
|
|||||||
},
|
},
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("show inactive defined XML")
|
.help = N_("show inactive defined XML")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -791,17 +788,14 @@ static const vshCmdOptDef opts_interface_bridge[] = {
|
|||||||
},
|
},
|
||||||
{.name = "no-stp",
|
{.name = "no-stp",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("do not enable STP for this bridge")
|
.help = N_("do not enable STP for this bridge")
|
||||||
},
|
},
|
||||||
{.name = "delay",
|
{.name = "delay",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("number of seconds to squelch traffic on newly connected ports")
|
.help = N_("number of seconds to squelch traffic on newly connected ports")
|
||||||
},
|
},
|
||||||
{.name = "no-start",
|
{.name = "no-start",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("don't start the bridge immediately")
|
.help = N_("don't start the bridge immediately")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1025,7 +1019,6 @@ static const vshCmdOptDef opts_interface_unbridge[] = {
|
|||||||
},
|
},
|
||||||
{.name = "no-start",
|
{.name = "no-start",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("don't start the un-slaved interface immediately (not recommended)")
|
.help = N_("don't start the un-slaved interface immediately (not recommended)")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -99,7 +99,6 @@ static const vshCmdOptDef opts_network_autostart[] = {
|
|||||||
},
|
},
|
||||||
{.name = "disable",
|
{.name = "disable",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("disable autostarting")
|
.help = N_("disable autostarting")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -299,7 +298,6 @@ static const vshCmdOptDef opts_network_dumpxml[] = {
|
|||||||
},
|
},
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("network information of an inactive domain")
|
.help = N_("network information of an inactive domain")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -631,32 +629,26 @@ static const vshCmdInfo info_network_list[] = {
|
|||||||
static const vshCmdOptDef opts_network_list[] = {
|
static const vshCmdOptDef opts_network_list[] = {
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive networks")
|
.help = N_("list inactive networks")
|
||||||
},
|
},
|
||||||
{.name = "all",
|
{.name = "all",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive & active networks")
|
.help = N_("list inactive & active networks")
|
||||||
},
|
},
|
||||||
{.name = "persistent",
|
{.name = "persistent",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list persistent networks")
|
.help = N_("list persistent networks")
|
||||||
},
|
},
|
||||||
{.name = "transient",
|
{.name = "transient",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list transient networks")
|
.help = N_("list transient networks")
|
||||||
},
|
},
|
||||||
{.name = "autostart",
|
{.name = "autostart",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list networks with autostart enabled")
|
.help = N_("list networks with autostart enabled")
|
||||||
},
|
},
|
||||||
{.name = "no-autostart",
|
{.name = "no-autostart",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list networks with autostart disabled")
|
.help = N_("list networks with autostart disabled")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -881,22 +873,18 @@ static const vshCmdOptDef opts_network_update[] = {
|
|||||||
},
|
},
|
||||||
{.name = "parent-index",
|
{.name = "parent-index",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("which parent object to search through")
|
.help = N_("which parent object to search through")
|
||||||
},
|
},
|
||||||
{.name = "config",
|
{.name = "config",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("affect next network startup")
|
.help = N_("affect next network startup")
|
||||||
},
|
},
|
||||||
{.name = "live",
|
{.name = "live",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("affect running network")
|
.help = N_("affect running network")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("affect current state of network")
|
.help = N_("affect current state of network")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -110,7 +110,6 @@ static const vshCmdInfo info_node_device_destroy[] = {
|
|||||||
static const vshCmdOptDef opts_node_device_destroy[] = {
|
static const vshCmdOptDef opts_node_device_destroy[] = {
|
||||||
{.name = "name",
|
{.name = "name",
|
||||||
.type = VSH_OT_ALIAS,
|
.type = VSH_OT_ALIAS,
|
||||||
.flags = 0,
|
|
||||||
.help = "device"
|
.help = "device"
|
||||||
},
|
},
|
||||||
{.name = "device",
|
{.name = "device",
|
||||||
@ -381,12 +380,10 @@ static const vshCmdInfo info_node_list_devices[] = {
|
|||||||
static const vshCmdOptDef opts_node_list_devices[] = {
|
static const vshCmdOptDef opts_node_list_devices[] = {
|
||||||
{.name = "tree",
|
{.name = "tree",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list devices in a tree")
|
.help = N_("list devices in a tree")
|
||||||
},
|
},
|
||||||
{.name = "cap",
|
{.name = "cap",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("capability names, separated by comma")
|
.help = N_("capability names, separated by comma")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -95,7 +95,6 @@ static const vshCmdOptDef opts_pool_autostart[] = {
|
|||||||
},
|
},
|
||||||
{.name = "disable",
|
{.name = "disable",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("disable autostarting")
|
.help = N_("disable autostarting")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -192,7 +191,6 @@ static const vshCmdOptDef opts_pool_X_as[] = {
|
|||||||
},
|
},
|
||||||
{.name = "print-xml",
|
{.name = "print-xml",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("print XML document, but don't define/create")
|
.help = N_("print XML document, but don't define/create")
|
||||||
},
|
},
|
||||||
{.name = "type",
|
{.name = "type",
|
||||||
@ -202,32 +200,26 @@ static const vshCmdOptDef opts_pool_X_as[] = {
|
|||||||
},
|
},
|
||||||
{.name = "source-host",
|
{.name = "source-host",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("source-host for underlying storage")
|
.help = N_("source-host for underlying storage")
|
||||||
},
|
},
|
||||||
{.name = "source-path",
|
{.name = "source-path",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("source path for underlying storage")
|
.help = N_("source path for underlying storage")
|
||||||
},
|
},
|
||||||
{.name = "source-dev",
|
{.name = "source-dev",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("source device for underlying storage")
|
.help = N_("source device for underlying storage")
|
||||||
},
|
},
|
||||||
{.name = "source-name",
|
{.name = "source-name",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("source name for underlying storage")
|
.help = N_("source name for underlying storage")
|
||||||
},
|
},
|
||||||
{.name = "target",
|
{.name = "target",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("target for underlying storage")
|
.help = N_("target for underlying storage")
|
||||||
},
|
},
|
||||||
{.name = "source-format",
|
{.name = "source-format",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("format for underlying storage")
|
.help = N_("format for underlying storage")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -451,12 +443,10 @@ static const vshCmdOptDef opts_pool_build[] = {
|
|||||||
},
|
},
|
||||||
{.name = "no-overwrite",
|
{.name = "no-overwrite",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("do not overwrite an existing pool of this type")
|
.help = N_("do not overwrite an existing pool of this type")
|
||||||
},
|
},
|
||||||
{.name = "overwrite",
|
{.name = "overwrite",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("overwrite any existing data")
|
.help = N_("overwrite any existing data")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -643,7 +633,6 @@ static const vshCmdOptDef opts_pool_dumpxml[] = {
|
|||||||
},
|
},
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("show inactive defined XML")
|
.help = N_("show inactive defined XML")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -916,42 +905,34 @@ static const vshCmdInfo info_pool_list[] = {
|
|||||||
static const vshCmdOptDef opts_pool_list[] = {
|
static const vshCmdOptDef opts_pool_list[] = {
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive pools")
|
.help = N_("list inactive pools")
|
||||||
},
|
},
|
||||||
{.name = "all",
|
{.name = "all",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list inactive & active pools")
|
.help = N_("list inactive & active pools")
|
||||||
},
|
},
|
||||||
{.name = "transient",
|
{.name = "transient",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list transient pools")
|
.help = N_("list transient pools")
|
||||||
},
|
},
|
||||||
{.name = "persistent",
|
{.name = "persistent",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list persistent pools")
|
.help = N_("list persistent pools")
|
||||||
},
|
},
|
||||||
{.name = "autostart",
|
{.name = "autostart",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list pools with autostart enabled")
|
.help = N_("list pools with autostart enabled")
|
||||||
},
|
},
|
||||||
{.name = "no-autostart",
|
{.name = "no-autostart",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list pools with autostart disabled")
|
.help = N_("list pools with autostart disabled")
|
||||||
},
|
},
|
||||||
{.name = "type",
|
{.name = "type",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("only list pool of specified type(s) (if supported)")
|
.help = N_("only list pool of specified type(s) (if supported)")
|
||||||
},
|
},
|
||||||
{.name = "details",
|
{.name = "details",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("display extended details for pools")
|
.help = N_("display extended details for pools")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1375,17 +1356,14 @@ static const vshCmdOptDef opts_find_storage_pool_sources_as[] = {
|
|||||||
},
|
},
|
||||||
{.name = "host",
|
{.name = "host",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("optional host to query")
|
.help = N_("optional host to query")
|
||||||
},
|
},
|
||||||
{.name = "port",
|
{.name = "port",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("optional port to query")
|
.help = N_("optional port to query")
|
||||||
},
|
},
|
||||||
{.name = "initiator",
|
{.name = "initiator",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("optional initiator IQN to use for query")
|
.help = N_("optional initiator IQN to use for query")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1464,7 +1442,6 @@ static const vshCmdOptDef opts_find_storage_pool_sources[] = {
|
|||||||
},
|
},
|
||||||
{.name = "srcSpec",
|
{.name = "srcSpec",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = VSH_OFLAG_NONE,
|
|
||||||
.help = N_("optional file of source xml to query for pools")
|
.help = N_("optional file of source xml to query for pools")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -487,22 +487,18 @@ static const vshCmdInfo info_secret_list[] = {
|
|||||||
static const vshCmdOptDef opts_secret_list[] = {
|
static const vshCmdOptDef opts_secret_list[] = {
|
||||||
{.name = "ephemeral",
|
{.name = "ephemeral",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list ephemeral secrets")
|
.help = N_("list ephemeral secrets")
|
||||||
},
|
},
|
||||||
{.name = "no-ephemeral",
|
{.name = "no-ephemeral",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list non-ephemeral secrets")
|
.help = N_("list non-ephemeral secrets")
|
||||||
},
|
},
|
||||||
{.name = "private",
|
{.name = "private",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list private secrets")
|
.help = N_("list private secrets")
|
||||||
},
|
},
|
||||||
{.name = "no-private",
|
{.name = "no-private",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list non-private secrets")
|
.help = N_("list non-private secrets")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -129,52 +129,42 @@ static const vshCmdOptDef opts_snapshot_create[] = {
|
|||||||
},
|
},
|
||||||
{.name = "xmlfile",
|
{.name = "xmlfile",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("domain snapshot XML")
|
.help = N_("domain snapshot XML")
|
||||||
},
|
},
|
||||||
{.name = "redefine",
|
{.name = "redefine",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("redefine metadata for existing snapshot")
|
.help = N_("redefine metadata for existing snapshot")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("with redefine, set current snapshot")
|
.help = N_("with redefine, set current snapshot")
|
||||||
},
|
},
|
||||||
{.name = "no-metadata",
|
{.name = "no-metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("take snapshot but create no metadata")
|
.help = N_("take snapshot but create no metadata")
|
||||||
},
|
},
|
||||||
{.name = "halt",
|
{.name = "halt",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("halt domain after snapshot is created")
|
.help = N_("halt domain after snapshot is created")
|
||||||
},
|
},
|
||||||
{.name = "disk-only",
|
{.name = "disk-only",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("capture disk state but not vm state")
|
.help = N_("capture disk state but not vm state")
|
||||||
},
|
},
|
||||||
{.name = "reuse-external",
|
{.name = "reuse-external",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("reuse any existing external files")
|
.help = N_("reuse any existing external files")
|
||||||
},
|
},
|
||||||
{.name = "quiesce",
|
{.name = "quiesce",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("quiesce guest's file systems")
|
.help = N_("quiesce guest's file systems")
|
||||||
},
|
},
|
||||||
{.name = "atomic",
|
{.name = "atomic",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("require atomic operation")
|
.help = N_("require atomic operation")
|
||||||
},
|
},
|
||||||
{.name = "live",
|
{.name = "live",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("take a live snapshot")
|
.help = N_("take a live snapshot")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -348,52 +338,42 @@ static const vshCmdOptDef opts_snapshot_create_as[] = {
|
|||||||
},
|
},
|
||||||
{.name = "name",
|
{.name = "name",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("name of snapshot")
|
.help = N_("name of snapshot")
|
||||||
},
|
},
|
||||||
{.name = "description",
|
{.name = "description",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("description of snapshot")
|
.help = N_("description of snapshot")
|
||||||
},
|
},
|
||||||
{.name = "print-xml",
|
{.name = "print-xml",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("print XML document rather than create")
|
.help = N_("print XML document rather than create")
|
||||||
},
|
},
|
||||||
{.name = "no-metadata",
|
{.name = "no-metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("take snapshot but create no metadata")
|
.help = N_("take snapshot but create no metadata")
|
||||||
},
|
},
|
||||||
{.name = "halt",
|
{.name = "halt",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("halt domain after snapshot is created")
|
.help = N_("halt domain after snapshot is created")
|
||||||
},
|
},
|
||||||
{.name = "disk-only",
|
{.name = "disk-only",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("capture disk state but not vm state")
|
.help = N_("capture disk state but not vm state")
|
||||||
},
|
},
|
||||||
{.name = "reuse-external",
|
{.name = "reuse-external",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("reuse any existing external files")
|
.help = N_("reuse any existing external files")
|
||||||
},
|
},
|
||||||
{.name = "quiesce",
|
{.name = "quiesce",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("quiesce guest's file systems")
|
.help = N_("quiesce guest's file systems")
|
||||||
},
|
},
|
||||||
{.name = "atomic",
|
{.name = "atomic",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("require atomic operation")
|
.help = N_("require atomic operation")
|
||||||
},
|
},
|
||||||
{.name = "live",
|
{.name = "live",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("take a live snapshot")
|
.help = N_("take a live snapshot")
|
||||||
},
|
},
|
||||||
{.name = "memspec",
|
{.name = "memspec",
|
||||||
@ -403,7 +383,6 @@ static const vshCmdOptDef opts_snapshot_create_as[] = {
|
|||||||
},
|
},
|
||||||
{.name = "diskspec",
|
{.name = "diskspec",
|
||||||
.type = VSH_OT_ARGV,
|
.type = VSH_OT_ARGV,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("disk attributes: disk[,snapshot=type][,driver=type][,file=name]")
|
.help = N_("disk attributes: disk[,snapshot=type][,driver=type][,file=name]")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -551,22 +530,18 @@ static const vshCmdOptDef opts_snapshot_edit[] = {
|
|||||||
},
|
},
|
||||||
{.name = "snapshotname",
|
{.name = "snapshotname",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("snapshot name")
|
.help = N_("snapshot name")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("also set edited snapshot as current")
|
.help = N_("also set edited snapshot as current")
|
||||||
},
|
},
|
||||||
{.name = "rename",
|
{.name = "rename",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("allow renaming an existing snapshot")
|
.help = N_("allow renaming an existing snapshot")
|
||||||
},
|
},
|
||||||
{.name = "clone",
|
{.name = "clone",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("allow cloning to new name")
|
.help = N_("allow cloning to new name")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -683,17 +658,14 @@ static const vshCmdOptDef opts_snapshot_current[] = {
|
|||||||
},
|
},
|
||||||
{.name = "name",
|
{.name = "name",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list the name, rather than the full xml")
|
.help = N_("list the name, rather than the full xml")
|
||||||
},
|
},
|
||||||
{.name = "security-info",
|
{.name = "security-info",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("include security sensitive information in XML dump")
|
.help = N_("include security sensitive information in XML dump")
|
||||||
},
|
},
|
||||||
{.name = "snapshotname",
|
{.name = "snapshotname",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("name of existing snapshot to make current")
|
.help = N_("name of existing snapshot to make current")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -926,12 +898,10 @@ static const vshCmdOptDef opts_snapshot_info[] = {
|
|||||||
},
|
},
|
||||||
{.name = "snapshotname",
|
{.name = "snapshotname",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("snapshot name")
|
.help = N_("snapshot name")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("info on current snapshot")
|
.help = N_("info on current snapshot")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1485,82 +1455,66 @@ static const vshCmdOptDef opts_snapshot_list[] = {
|
|||||||
},
|
},
|
||||||
{.name = "parent",
|
{.name = "parent",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("add a column showing parent snapshot")
|
.help = N_("add a column showing parent snapshot")
|
||||||
},
|
},
|
||||||
{.name = "roots",
|
{.name = "roots",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list only snapshots without parents")
|
.help = N_("list only snapshots without parents")
|
||||||
},
|
},
|
||||||
{.name = "leaves",
|
{.name = "leaves",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list only snapshots without children")
|
.help = N_("list only snapshots without children")
|
||||||
},
|
},
|
||||||
{.name = "no-leaves",
|
{.name = "no-leaves",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list only snapshots that are not leaves (with children)")
|
.help = N_("list only snapshots that are not leaves (with children)")
|
||||||
},
|
},
|
||||||
{.name = "metadata",
|
{.name = "metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list only snapshots that have metadata that would prevent undefine")
|
.help = N_("list only snapshots that have metadata that would prevent undefine")
|
||||||
},
|
},
|
||||||
{.name = "no-metadata",
|
{.name = "no-metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list only snapshots that have no metadata managed by libvirt")
|
.help = N_("list only snapshots that have no metadata managed by libvirt")
|
||||||
},
|
},
|
||||||
{.name = "inactive",
|
{.name = "inactive",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("filter by snapshots taken while inactive")
|
.help = N_("filter by snapshots taken while inactive")
|
||||||
},
|
},
|
||||||
{.name = "active",
|
{.name = "active",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("filter by snapshots taken while active (system checkpoints)")
|
.help = N_("filter by snapshots taken while active (system checkpoints)")
|
||||||
},
|
},
|
||||||
{.name = "disk-only",
|
{.name = "disk-only",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("filter by disk-only snapshots")
|
.help = N_("filter by disk-only snapshots")
|
||||||
},
|
},
|
||||||
{.name = "internal",
|
{.name = "internal",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("filter by internal snapshots")
|
.help = N_("filter by internal snapshots")
|
||||||
},
|
},
|
||||||
{.name = "external",
|
{.name = "external",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("filter by external snapshots")
|
.help = N_("filter by external snapshots")
|
||||||
},
|
},
|
||||||
{.name = "tree",
|
{.name = "tree",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list snapshots in a tree")
|
.help = N_("list snapshots in a tree")
|
||||||
},
|
},
|
||||||
{.name = "from",
|
{.name = "from",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("limit list to children of given snapshot")
|
.help = N_("limit list to children of given snapshot")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("limit list to children of current snapshot")
|
.help = N_("limit list to children of current snapshot")
|
||||||
},
|
},
|
||||||
{.name = "descendants",
|
{.name = "descendants",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("with --from, list all descendants")
|
.help = N_("with --from, list all descendants")
|
||||||
},
|
},
|
||||||
{.name = "name",
|
{.name = "name",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("list snapshot names only")
|
.help = N_("list snapshot names only")
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1800,7 +1754,6 @@ static const vshCmdOptDef opts_snapshot_dumpxml[] = {
|
|||||||
},
|
},
|
||||||
{.name = "security-info",
|
{.name = "security-info",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("include security sensitive information in XML dump")
|
.help = N_("include security sensitive information in XML dump")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1864,12 +1817,10 @@ static const vshCmdOptDef opts_snapshot_parent[] = {
|
|||||||
},
|
},
|
||||||
{.name = "snapshotname",
|
{.name = "snapshotname",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("find parent of snapshot name")
|
.help = N_("find parent of snapshot name")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("find parent of current snapshot")
|
.help = N_("find parent of current snapshot")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1934,27 +1885,22 @@ static const vshCmdOptDef opts_snapshot_revert[] = {
|
|||||||
},
|
},
|
||||||
{.name = "snapshotname",
|
{.name = "snapshotname",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("snapshot name")
|
.help = N_("snapshot name")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("revert to current snapshot")
|
.help = N_("revert to current snapshot")
|
||||||
},
|
},
|
||||||
{.name = "running",
|
{.name = "running",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("after reverting, change state to running")
|
.help = N_("after reverting, change state to running")
|
||||||
},
|
},
|
||||||
{.name = "paused",
|
{.name = "paused",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("after reverting, change state to paused")
|
.help = N_("after reverting, change state to paused")
|
||||||
},
|
},
|
||||||
{.name = "force",
|
{.name = "force",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("try harder on risky reverts")
|
.help = N_("try harder on risky reverts")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -2032,27 +1978,22 @@ static const vshCmdOptDef opts_snapshot_delete[] = {
|
|||||||
},
|
},
|
||||||
{.name = "snapshotname",
|
{.name = "snapshotname",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("snapshot name")
|
.help = N_("snapshot name")
|
||||||
},
|
},
|
||||||
{.name = "current",
|
{.name = "current",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("delete current snapshot")
|
.help = N_("delete current snapshot")
|
||||||
},
|
},
|
||||||
{.name = "children",
|
{.name = "children",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("delete snapshot and all children")
|
.help = N_("delete snapshot and all children")
|
||||||
},
|
},
|
||||||
{.name = "children-only",
|
{.name = "children-only",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("delete children but not snapshot")
|
.help = N_("delete children but not snapshot")
|
||||||
},
|
},
|
||||||
{.name = "metadata",
|
{.name = "metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("delete only libvirt metadata, leaving snapshot contents behind")
|
.help = N_("delete only libvirt metadata, leaving snapshot contents behind")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -132,27 +132,22 @@ static const vshCmdOptDef opts_vol_create_as[] = {
|
|||||||
},
|
},
|
||||||
{.name = "allocation",
|
{.name = "allocation",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("initial allocation size, as scaled integer (default bytes)")
|
.help = N_("initial allocation size, as scaled integer (default bytes)")
|
||||||
},
|
},
|
||||||
{.name = "format",
|
{.name = "format",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("file format type raw,bochs,qcow,qcow2,qed,vmdk")
|
.help = N_("file format type raw,bochs,qcow,qcow2,qed,vmdk")
|
||||||
},
|
},
|
||||||
{.name = "backing-vol",
|
{.name = "backing-vol",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("the backing volume if taking a snapshot")
|
.help = N_("the backing volume if taking a snapshot")
|
||||||
},
|
},
|
||||||
{.name = "backing-vol-format",
|
{.name = "backing-vol-format",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("format of backing volume if taking a snapshot")
|
.help = N_("format of backing volume if taking a snapshot")
|
||||||
},
|
},
|
||||||
{.name = "prealloc-metadata",
|
{.name = "prealloc-metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -332,7 +327,6 @@ static const vshCmdOptDef opts_vol_create[] = {
|
|||||||
},
|
},
|
||||||
{.name = "prealloc-metadata",
|
{.name = "prealloc-metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -408,12 +402,10 @@ static const vshCmdOptDef opts_vol_create_from[] = {
|
|||||||
},
|
},
|
||||||
{.name = "inputpool",
|
{.name = "inputpool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid of the input volume's pool")
|
.help = N_("pool name or uuid of the input volume's pool")
|
||||||
},
|
},
|
||||||
{.name = "prealloc-metadata",
|
{.name = "prealloc-metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -523,12 +515,10 @@ static const vshCmdOptDef opts_vol_clone[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = "prealloc-metadata",
|
{.name = "prealloc-metadata",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
.help = N_("preallocate metadata (for qcow2 instead of full allocation)")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -621,17 +611,14 @@ static const vshCmdOptDef opts_vol_upload[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = "offset",
|
{.name = "offset",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("volume offset to upload to")
|
.help = N_("volume offset to upload to")
|
||||||
},
|
},
|
||||||
{.name = "length",
|
{.name = "length",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("amount of data to upload")
|
.help = N_("amount of data to upload")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -738,17 +725,14 @@ static const vshCmdOptDef opts_vol_download[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = "offset",
|
{.name = "offset",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("volume offset to download from")
|
.help = N_("volume offset to download from")
|
||||||
},
|
},
|
||||||
{.name = "length",
|
{.name = "length",
|
||||||
.type = VSH_OT_INT,
|
.type = VSH_OT_INT,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("amount of data to download")
|
.help = N_("amount of data to download")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -848,7 +832,6 @@ static const vshCmdOptDef opts_vol_delete[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -897,12 +880,10 @@ static const vshCmdOptDef opts_vol_wipe[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = "algorithm",
|
{.name = "algorithm",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("perform selected wiping algorithm")
|
.help = N_("perform selected wiping algorithm")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -975,7 +956,6 @@ static const vshCmdOptDef opts_vol_info[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1056,22 +1036,18 @@ static const vshCmdOptDef opts_vol_resize[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = "allocate",
|
{.name = "allocate",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("allocate the new capacity, rather than leaving it sparse")
|
.help = N_("allocate the new capacity, rather than leaving it sparse")
|
||||||
},
|
},
|
||||||
{.name = "delta",
|
{.name = "delta",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("use capacity as a delta to current size, rather than the new size")
|
.help = N_("use capacity as a delta to current size, rather than the new size")
|
||||||
},
|
},
|
||||||
{.name = "shrink",
|
{.name = "shrink",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("allow the resize to shrink the volume")
|
.help = N_("allow the resize to shrink the volume")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1158,7 +1134,6 @@ static const vshCmdOptDef opts_vol_dumpxml[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1332,7 +1307,6 @@ static const vshCmdOptDef opts_vol_list[] = {
|
|||||||
},
|
},
|
||||||
{.name = "details",
|
{.name = "details",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("display extended details for volumes")
|
.help = N_("display extended details for volumes")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1644,7 +1618,6 @@ static const vshCmdInfo info_vol_pool[] = {
|
|||||||
static const vshCmdOptDef opts_vol_pool[] = {
|
static const vshCmdOptDef opts_vol_pool[] = {
|
||||||
{.name = "uuid",
|
{.name = "uuid",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("return the pool uuid rather than pool name")
|
.help = N_("return the pool uuid rather than pool name")
|
||||||
},
|
},
|
||||||
{.name = "vol",
|
{.name = "vol",
|
||||||
@ -1713,7 +1686,6 @@ static const vshCmdOptDef opts_vol_key[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -1753,7 +1725,6 @@ static const vshCmdOptDef opts_vol_path[] = {
|
|||||||
},
|
},
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("pool name or uuid")
|
.help = N_("pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
|
@ -453,7 +453,6 @@ static const vshCmdInfo info_help[] = {
|
|||||||
static const vshCmdOptDef opts_help[] = {
|
static const vshCmdOptDef opts_help[] = {
|
||||||
{.name = "command",
|
{.name = "command",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("Prints global help, command specific help, or help for a group of related commands")
|
.help = N_("Prints global help, command specific help, or help for a group of related commands")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -717,7 +716,6 @@ static const vshCmdInfo info_cd[] = {
|
|||||||
static const vshCmdOptDef opts_cd[] = {
|
static const vshCmdOptDef opts_cd[] = {
|
||||||
{.name = "dir",
|
{.name = "dir",
|
||||||
.type = VSH_OT_DATA,
|
.type = VSH_OT_DATA,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("directory to switch to (default: home or else root)")
|
.help = N_("directory to switch to (default: home or else root)")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -801,22 +799,18 @@ static const vshCmdInfo info_echo[] = {
|
|||||||
static const vshCmdOptDef opts_echo[] = {
|
static const vshCmdOptDef opts_echo[] = {
|
||||||
{.name = "shell",
|
{.name = "shell",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("escape for shell use")
|
.help = N_("escape for shell use")
|
||||||
},
|
},
|
||||||
{.name = "xml",
|
{.name = "xml",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("escape for XML use")
|
.help = N_("escape for XML use")
|
||||||
},
|
},
|
||||||
{.name = "str",
|
{.name = "str",
|
||||||
.type = VSH_OT_ALIAS,
|
.type = VSH_OT_ALIAS,
|
||||||
.flags = 0,
|
|
||||||
.help = "string"
|
.help = "string"
|
||||||
},
|
},
|
||||||
{.name = "string",
|
{.name = "string",
|
||||||
.type = VSH_OT_ARGV,
|
.type = VSH_OT_ARGV,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("arguments to echo")
|
.help = N_("arguments to echo")
|
||||||
},
|
},
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
@ -975,7 +969,6 @@ vshCmddefOptParse(const vshCmdDef *cmd, uint32_t *opts_need_arg,
|
|||||||
static vshCmdOptDef helpopt = {
|
static vshCmdOptDef helpopt = {
|
||||||
.name = "help",
|
.name = "help",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.flags = 0,
|
|
||||||
.help = N_("print help for this function")
|
.help = N_("print help for this function")
|
||||||
};
|
};
|
||||||
static const vshCmdOptDef *
|
static const vshCmdOptDef *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user