From: Daniel Veillard Date: Mon, 21 Dec 2009 12:49:45 +0000 (+0100) Subject: Change virsh dommemstats command to dommemstat X-Git-Tag: v0.7.5~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a858474f49872ff558b4a6c33e97076b4a6c53ae;p=thirdparty%2Flibvirt.git 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 --- diff --git a/tools/virsh.c b/tools/virsh.c index 17062629ff..21f9710e39 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -887,19 +887,19 @@ cmdDomIfstat (vshControl *ctl, const vshCmd *cmd) /* * "dommemstats" command */ -static const vshCmdInfo info_dommemstats[] = { +static const vshCmdInfo info_dommemstat[] = { {"help", gettext_noop("get memory statistics for a domain")}, {"desc", gettext_noop("Get memory statistics for a runnng domain.")}, {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")}, {NULL, 0, 0, NULL} }; static int -cmdDomMemStats(vshControl *ctl, const vshCmd *cmd) +cmdDomMemStat(vshControl *ctl, const vshCmd *cmd) { virDomainPtr dom; char *name; @@ -7340,7 +7340,7 @@ static const vshCmdDef commands[] = { {"domstate", cmdDomstate, opts_domstate, info_domstate}, {"domblkstat", cmdDomblkstat, opts_domblkstat, info_domblkstat}, {"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-to-native", cmdDomXMLToNative, opts_domxmltonative, info_domxmltonative}, {"dumpxml", cmdDumpXML, opts_dumpxml, info_dumpxml},