diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 4360306989..023ec8a8b3 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -1264,6 +1264,10 @@ static const vshCmdOptDef opts_blkdeviotune[] = { .help = N_("I/O size in bytes") }, {.name = "group_name", + .type = VSH_OT_ALIAS, + .help = "group-name" + }, + {.name = "group-name", .type = VSH_OT_STRING, .help = N_("group name to share I/O quota between multiple drives") }, @@ -1398,8 +1402,8 @@ cmdBlkdeviotune(vshControl *ctl, const vshCmd *cmd) VSH_ADD_IOTUNE(write-iops-sec-max-length, WRITE_IOPS_SEC_MAX_LENGTH); #undef VSH_ADD_IOTUNE - if (vshCommandOptStringReq(ctl, cmd, "group_name", &group_name) < 0) { - vshError(ctl, "%s", _("Unable to parse group parameter")); + if (vshCommandOptStringReq(ctl, cmd, "group-name", &group_name) < 0) { + vshError(ctl, "%s", _("Unable to parse group-name parameter")); goto cleanup; } diff --git a/tools/virsh.pod b/tools/virsh.pod index 18f16b51bd..a47040984b 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1139,7 +1139,7 @@ command. [I] [I]] [[I] | [I] [I]] -[I] [I] +[I] [I] Set or query the block disk io parameters for a block device of I. I specifies a unique target name () or source @@ -1179,7 +1179,7 @@ read I/O operations limit. I<--write-iops-sec-max-length> specifies duration in seconds to allow maximum write I/O operations limit. I<--size-iops-sec> specifies size I/O operations limit per second. -I<--group_name> specifies group name to share I/O quota between multiple drives. +I<--group-name> specifies group name to share I/O quota between multiple drives. For a qemu domain, if no name is provided, then the default is to have a single group for each I.