mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00:00
virsh: use - not _ in memtune option names
* tools/virsh.c (opts_memtune): All other options in virsh use - for separating words.
This commit is contained in:
parent
5ee03c25f7
commit
bac73e7f68
@ -2890,13 +2890,13 @@ static const vshCmdInfo info_memtune[] = {
|
|||||||
|
|
||||||
static const vshCmdOptDef opts_memtune[] = {
|
static const vshCmdOptDef opts_memtune[] = {
|
||||||
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
|
{"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")},
|
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")},
|
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")},
|
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")},
|
N_("Min guaranteed memory in kilobytes")},
|
||||||
{NULL, 0, 0, NULL}
|
{NULL, 0, 0, NULL}
|
||||||
};
|
};
|
||||||
@ -2918,22 +2918,22 @@ cmdMemtune(vshControl * ctl, const vshCmd * cmd)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
hard_limit =
|
hard_limit =
|
||||||
vshCommandOptLongLong(cmd, VIR_DOMAIN_MEMORY_HARD_LIMIT, NULL);
|
vshCommandOptLongLong(cmd, "hard-limit", NULL);
|
||||||
if (hard_limit)
|
if (hard_limit)
|
||||||
nparams++;
|
nparams++;
|
||||||
|
|
||||||
soft_limit =
|
soft_limit =
|
||||||
vshCommandOptLongLong(cmd, VIR_DOMAIN_MEMORY_SOFT_LIMIT, NULL);
|
vshCommandOptLongLong(cmd, "soft-limit", NULL);
|
||||||
if (soft_limit)
|
if (soft_limit)
|
||||||
nparams++;
|
nparams++;
|
||||||
|
|
||||||
swap_hard_limit =
|
swap_hard_limit =
|
||||||
vshCommandOptLongLong(cmd, VIR_DOMAIN_MEMORY_SWAP_HARD_LIMIT, NULL);
|
vshCommandOptLongLong(cmd, "swap-hard-limit", NULL);
|
||||||
if (swap_hard_limit)
|
if (swap_hard_limit)
|
||||||
nparams++;
|
nparams++;
|
||||||
|
|
||||||
min_guarantee =
|
min_guarantee =
|
||||||
vshCommandOptLongLong(cmd, VIR_DOMAIN_MEMORY_MIN_GUARANTEE, NULL);
|
vshCommandOptLongLong(cmd, "min-guarantee", NULL);
|
||||||
if (min_guarantee)
|
if (min_guarantee)
|
||||||
nparams++;
|
nparams++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user