mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Change virsh dommemstats command to dommemstat
As Paul Jenner pointed out all other statistics commands use the singular form * tools/virsh.c: rename dommemstats to dommemstat as well as function name and associated structures
This commit is contained in:
parent
469b6b3a75
commit
a858474f49
@ -887,19 +887,19 @@ cmdDomIfstat (vshControl *ctl, const vshCmd *cmd)
|
|||||||
/*
|
/*
|
||||||
* "dommemstats" command
|
* "dommemstats" command
|
||||||
*/
|
*/
|
||||||
static const vshCmdInfo info_dommemstats[] = {
|
static const vshCmdInfo info_dommemstat[] = {
|
||||||
{"help", gettext_noop("get memory statistics for a domain")},
|
{"help", gettext_noop("get memory statistics for a domain")},
|
||||||
{"desc", gettext_noop("Get memory statistics for a runnng domain.")},
|
{"desc", gettext_noop("Get memory statistics for a runnng domain.")},
|
||||||
{NULL,NULL}
|
{NULL,NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static const vshCmdOptDef opts_dommemstats[] = {
|
static const vshCmdOptDef opts_dommemstat[] = {
|
||||||
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")},
|
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")},
|
||||||
{NULL, 0, 0, NULL}
|
{NULL, 0, 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cmdDomMemStats(vshControl *ctl, const vshCmd *cmd)
|
cmdDomMemStat(vshControl *ctl, const vshCmd *cmd)
|
||||||
{
|
{
|
||||||
virDomainPtr dom;
|
virDomainPtr dom;
|
||||||
char *name;
|
char *name;
|
||||||
@ -7340,7 +7340,7 @@ static const vshCmdDef commands[] = {
|
|||||||
{"domstate", cmdDomstate, opts_domstate, info_domstate},
|
{"domstate", cmdDomstate, opts_domstate, info_domstate},
|
||||||
{"domblkstat", cmdDomblkstat, opts_domblkstat, info_domblkstat},
|
{"domblkstat", cmdDomblkstat, opts_domblkstat, info_domblkstat},
|
||||||
{"domifstat", cmdDomIfstat, opts_domifstat, info_domifstat},
|
{"domifstat", cmdDomIfstat, opts_domifstat, info_domifstat},
|
||||||
{"dommemstats", cmdDomMemStats, opts_dommemstats, info_dommemstats},
|
{"dommemstat", cmdDomMemStat, opts_dommemstat, info_dommemstat},
|
||||||
{"domxml-from-native", cmdDomXMLFromNative, opts_domxmlfromnative, info_domxmlfromnative},
|
{"domxml-from-native", cmdDomXMLFromNative, opts_domxmlfromnative, info_domxmlfromnative},
|
||||||
{"domxml-to-native", cmdDomXMLToNative, opts_domxmltonative, info_domxmltonative},
|
{"domxml-to-native", cmdDomXMLToNative, opts_domxmltonative, info_domxmltonative},
|
||||||
{"dumpxml", cmdDumpXML, opts_dumpxml, info_dumpxml},
|
{"dumpxml", cmdDumpXML, opts_dumpxml, info_dumpxml},
|
||||||
|
Loading…
Reference in New Issue
Block a user