2010/10/26 Eric Blake <eblake@xxxxxxxxxx>: > * tools/virsh.c (opts_memtune): All other options in virsh use - > for separating words. > --- > Âtools/virsh.c | Â Â8 ++++---- > Â1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tools/virsh.c b/tools/virsh.c > index cafd304..b616eef 100644 > --- a/tools/virsh.c > +++ b/tools/virsh.c > @@ -2890,13 +2890,13 @@ static const vshCmdInfo info_memtune[] = { > > Âstatic const vshCmdOptDef opts_memtune[] = { > Â Â {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")}, > - Â Â{VIR_DOMAIN_MEMORY_HARD_LIMIT, VSH_OT_INT, VSH_OFLAG_NONE, > + Â Â{"hard-limit", VSH_OT_INT, VSH_OFLAG_NONE, > Â Â ÂN_("Max memory in kilobytes")}, > - Â Â{VIR_DOMAIN_MEMORY_SOFT_LIMIT, VSH_OT_INT, VSH_OFLAG_NONE, > + Â Â{"soft-limit", VSH_OT_INT, VSH_OFLAG_NONE, > Â Â ÂN_("Memory during contention in kilobytes")}, > - Â Â{VIR_DOMAIN_MEMORY_SWAP_HARD_LIMIT, VSH_OT_INT, VSH_OFLAG_NONE, > + Â Â{"swap-hard-limit", VSH_OT_INT, VSH_OFLAG_NONE, > Â Â ÂN_("Max swap in kilobytes")}, > - Â Â{VIR_DOMAIN_MEMORY_MIN_GUARANTEE, VSH_OT_INT, VSH_OFLAG_NONE, > + Â Â{"min-guarantee", VSH_OT_INT, VSH_OFLAG_NONE, > Â Â ÂN_("Min guaranteed memory in kilobytes")}, > Â Â {NULL, 0, 0, NULL} > Â}; > -- > 1.7.2.3 > Doesn't this break calls like this in cmdMemtune: vshCommandOptLongLong(cmd, VIR_DOMAIN_MEMORY_HARD_LIMIT, NULL); and this needs to be replaced by: vshCommandOptLongLong(cmd, "hard-limit", NULL); Matthias -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list