From nobody Thu Sep 19 01:22:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=reject dis=none) header.from=linux.ibm.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1718187179905655.6195531003499; Wed, 12 Jun 2024 03:12:59 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id D487B11A8; Wed, 12 Jun 2024 06:12:58 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 3CB48CF7; Wed, 12 Jun 2024 06:04:26 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id DFF06E8B; Wed, 12 Jun 2024 06:04:21 -0400 (EDT) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 23CB0BDE for ; Wed, 12 Jun 2024 06:04:02 -0400 (EDT) Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45C7wqLJ005006 for ; Wed, 12 Jun 2024 10:04:01 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yq7rm8am6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 12 Jun 2024 10:04:01 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 45CA2kmp020045 for ; Wed, 12 Jun 2024 10:04:00 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([172.16.1.4]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3yn34n4dry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 12 Jun 2024 10:04:00 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 45CA3vI446924122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Jun 2024 10:03:59 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AB69C5805E; Wed, 12 Jun 2024 10:03:57 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BDCD25805D; Wed, 12 Jun 2024 10:03:56 +0000 (GMT) Received: from libvirt-dev-u221.fyre.ibm.com (unknown [9.112.252.183]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 12 Jun 2024 10:03:56 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=pp1; bh=+Th7eWfMJEtDD CmsLXEB0zp1JZDXNHvpOn8EBfluu5A=; b=R/zECe/QjqxH299rsynVkXCXiKibZ nxVJ8Z5f9bjDkPaW5qIe/x8blrGqUKnB/IF3uHKw3Ap9WZ7J4/nXvELJDZy/ae3j oYwb6439FZJkXH5F/uEu2XibKeB3hliJtzWMSw28pyvh7xriie+ywWbD6LThFPey hw2ObvfG2aqkI+HLNvFGcd3pPzcAa6MUPJWE7tfemBZ8xn+FJ3I8bm25FZOKHClw D9bPfPOggGQnjliaBqXhXOArvLK8qFu/mxEEYTs55QMy8yL0UNEoowgYnJrY5x6+ jSowRVnY7HMMtew8zeylrIv7actmvmv+dCOYAmt/rp6C8Xkcfp5Hcnh8Q== From: wucf@linux.ibm.com To: devel@lists.libvirt.org Cc: Chun Feng Wu Subject: [PATCH RFC v3 15/16] virsh: Add support for throttle group operations Date: Wed, 12 Jun 2024 03:02:23 -0700 Message-Id: <20240612100224.2024439-16-wucf@linux.ibm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240612100224.2024439-1-wucf@linux.ibm.com> References: <20240612100224.2024439-1-wucf@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: wN9J5JS_mXm6sf5boW1xmC1b-AfZMNPR X-Proofpoint-GUID: wN9J5JS_mXm6sf5boW1xmC1b-AfZMNPR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-12_06,2024-06-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 adultscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406120071 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: KAI37SR7SNQGQ2FGLHKJO6PWCUZ22U5Y X-Message-ID-Hash: KAI37SR7SNQGQ2FGLHKJO6PWCUZ22U5Y X-MailFrom: wucf@linux.ibm.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1718187181281100001 Content-Type: text/plain; charset="utf-8" From: Chun Feng Wu * Add new cmds: throttlegroupset, throttlegrouplist, throttlegroupinfo, thr= ottlegroupdel Signed-off-by: Chun Feng Wu --- tools/virsh-domain.c | 428 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 428 insertions(+) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 50e80689a2..f84a65451a 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -1509,6 +1509,410 @@ cmdBlkdeviotune(vshControl *ctl, const vshCmd *cmd) goto cleanup; } =20 + +/* + * "throttlegrouplist" command + */ +static const vshCmdInfo info_throttlegrouplist =3D { + .help =3D N_("list all domain throttlegroups."), + .desc =3D N_("Get the summary of throttle groups for a domain."), +}; + + +static const vshCmdOptDef opts_throttlegrouplist[] =3D { + VIRSH_COMMON_OPT_DOMAIN_FULL(0), + {.name =3D "inactive", + .type =3D VSH_OT_BOOL, + .help =3D N_("get inactive rather than running configuration") + }, + {.name =3D NULL} +}; + + +static bool +cmdThrottleGroupList(vshControl *ctl, + const vshCmd *cmd) +{ + unsigned int flags =3D 0; + size_t i; + g_autoptr(xmlDoc) xml =3D NULL; + g_autoptr(xmlXPathContext) ctxt =3D NULL; + g_autofree xmlNodePtr *groups =3D NULL; + ssize_t ngroups; + g_autoptr(vshTable) table =3D NULL; + + if (vshCommandOptBool(cmd, "inactive")) + flags |=3D VIR_DOMAIN_XML_INACTIVE; + + if (virshDomainGetXML(ctl, cmd, flags, &xml, &ctxt) < 0) + return false; + + ngroups =3D virXPathNodeSet("./throttlegroups/throttlegroup", ctxt, &g= roups); + if (ngroups < 0) + return false; + + table =3D vshTableNew(_("Name"), NULL); + + if (!table) + return false; + + for (i =3D 0; i < ngroups; i++) { + g_autofree char *name =3D NULL; + ctxt->node =3D groups[i]; + name =3D virXPathString("string(./group_name)", ctxt); + if (vshTableRowAppend(table, name, NULL) < 0) + return false; + } + + vshTablePrintToStdout(table, ctl); + + return true; +} + + +/* + * "throttlegroupset" command + */ +static const vshCmdInfo info_throttlegroupset =3D { + .help =3D N_("Add or update a throttling group."), + .desc =3D N_("Add or updte a throttling group."), +}; + + +static const vshCmdOptDef opts_throttlegroupset[] =3D { + VIRSH_COMMON_OPT_DOMAIN_FULL(0), + {.name =3D "group-name", + .type =3D VSH_OT_STRING, + .positional =3D true, + .required =3D true, + .completer =3D virshCompleteEmpty, + .help =3D N_("throttle group name") + }, + {.name =3D "total-bytes-sec", + .type =3D VSH_OT_INT, + .help =3D N_("total throughput limit, as scaled integer (default byte= s)") + }, + {.name =3D "read-bytes-sec", + .type =3D VSH_OT_INT, + .help =3D N_("read throughput limit, as scaled integer (default bytes= )") + }, + {.name =3D "write-bytes-sec", + .type =3D VSH_OT_INT, + .help =3D N_("write throughput limit, as scaled integer (default byt= es)") + }, + {.name =3D "total-iops-sec", + .type =3D VSH_OT_INT, + .help =3D N_("total I/O operations limit per second") + }, + {.name =3D "read-iops-sec", + .type =3D VSH_OT_INT, + .help =3D N_("read I/O operations limit per second") + }, + {.name =3D "write-iops-sec", + .type =3D VSH_OT_INT, + .help =3D N_("write I/O operations limit per second") + }, + {.name =3D "total-bytes-sec-max", + .type =3D VSH_OT_INT, + .help =3D N_("total max, as scaled integer (default bytes)") + }, + {.name =3D "read-bytes-sec-max", + .type =3D VSH_OT_INT, + .help =3D N_("read max, as scaled integer (default bytes)") + }, + {.name =3D "write-bytes-sec-max", + .type =3D VSH_OT_INT, + .help =3D N_("write max, as scaled integer (default bytes)") + }, + {.name =3D "total-iops-sec-max", + .type =3D VSH_OT_INT, + .help =3D N_("total I/O operations max") + }, + {.name =3D "read-iops-sec-max", + .type =3D VSH_OT_INT, + .help =3D N_("read I/O operations max") + }, + {.name =3D "write-iops-sec-max", + .type =3D VSH_OT_INT, + .help =3D N_("write I/O operations max") + }, + {.name =3D "size-iops-sec", + .type =3D VSH_OT_INT, + .help =3D N_("I/O size in bytes") + }, + {.name =3D "total-bytes-sec-max-length", + .type =3D VSH_OT_INT, + .help =3D N_("duration in seconds to allow total max bytes") + }, + {.name =3D "read-bytes-sec-max-length", + .type =3D VSH_OT_INT, + .help =3D N_("duration in seconds to allow read max bytes") + }, + {.name =3D "write-bytes-sec-max-length", + .type =3D VSH_OT_INT, + .help =3D N_("duration in seconds to allow write max bytes") + }, + {.name =3D "total-iops-sec-max-length", + .type =3D VSH_OT_INT, + .help =3D N_("duration in seconds to allow total I/O operations max") + }, + {.name =3D "read-iops-sec-max-length", + .type =3D VSH_OT_INT, + .help =3D N_("duration in seconds to allow read I/O operations max") + }, + {.name =3D "write-iops-sec-max-length", + .type =3D VSH_OT_INT, + .help =3D N_("duration in seconds to allow write I/O operations max") + }, + VIRSH_COMMON_OPT_DOMAIN_CONFIG, + VIRSH_COMMON_OPT_DOMAIN_LIVE, + VIRSH_COMMON_OPT_DOMAIN_CURRENT, + {.name =3D NULL} +}; + + +static bool +cmdThrottleGroupSet(vshControl *ctl, + const vshCmd *cmd) +{ + g_autoptr(virshDomain) dom =3D NULL; + const char *name; + const char *group_name =3D NULL; + unsigned long long value; + int nparams =3D 0; + int maxparams =3D 0; + virTypedParameterPtr params =3D NULL; + unsigned int flags =3D VIR_DOMAIN_AFFECT_CURRENT; + int rv =3D 0; + bool current =3D vshCommandOptBool(cmd, "current"); + bool config =3D vshCommandOptBool(cmd, "config"); + bool live =3D vshCommandOptBool(cmd, "live"); + bool ret =3D false; + + VSH_EXCLUSIVE_OPTIONS_VAR(current, live); + VSH_EXCLUSIVE_OPTIONS_VAR(current, config); + + if (config) + flags |=3D VIR_DOMAIN_AFFECT_CONFIG; + if (live) + flags |=3D VIR_DOMAIN_AFFECT_LIVE; + + if (!(dom =3D virshCommandOptDomain(ctl, cmd, &name))) + goto cleanup; + + +#define VSH_SET_THROTTLE_GROUP_SCALED(PARAM, CONST) \ + if ((rv =3D vshCommandOptScaledInt(ctl, cmd, #PARAM, &value, \ + 1, ULLONG_MAX)) < 0) { \ + goto interror; \ + } else if (rv > 0) { \ + if (virTypedParamsAddULLong(¶ms, &nparams, &maxparams, \ + VIR_DOMAIN_BLOCK_IOTUNE_##CONST, \ + value) < 0) \ + goto save_error; \ + } + + VSH_SET_THROTTLE_GROUP_SCALED(total-bytes-sec, TOTAL_BYTES_SEC); + VSH_SET_THROTTLE_GROUP_SCALED(read-bytes-sec, READ_BYTES_SEC); + VSH_SET_THROTTLE_GROUP_SCALED(write-bytes-sec, WRITE_BYTES_SEC); + VSH_SET_THROTTLE_GROUP_SCALED(total-bytes-sec-max, TOTAL_BYTES_SEC_MAX= ); + VSH_SET_THROTTLE_GROUP_SCALED(read-bytes-sec-max, READ_BYTES_SEC_MAX); + VSH_SET_THROTTLE_GROUP_SCALED(write-bytes-sec-max, WRITE_BYTES_SEC_MAX= ); +#undef VSH_SET_THROTTLE_GROUP_SCALED + +#define VSH_SET_THROTTLE_GROUP(PARAM, CONST) \ + if ((rv =3D vshCommandOptULongLong(ctl, cmd, #PARAM, &value)) < 0) { \ + goto interror; \ + } else if (rv > 0) { \ + if (virTypedParamsAddULLong(¶ms, &nparams, &maxparams, \ + VIR_DOMAIN_BLOCK_IOTUNE_##CONST, \ + value) < 0) \ + goto save_error; \ + } + + VSH_SET_THROTTLE_GROUP(total-iops-sec, TOTAL_IOPS_SEC); + VSH_SET_THROTTLE_GROUP(read-iops-sec, READ_IOPS_SEC); + VSH_SET_THROTTLE_GROUP(write-iops-sec, WRITE_IOPS_SEC); + VSH_SET_THROTTLE_GROUP(total-iops-sec-max, TOTAL_IOPS_SEC_MAX); + VSH_SET_THROTTLE_GROUP(read-iops-sec-max, READ_IOPS_SEC_MAX); + VSH_SET_THROTTLE_GROUP(write-iops-sec-max, WRITE_IOPS_SEC_MAX); + VSH_SET_THROTTLE_GROUP(size-iops-sec, SIZE_IOPS_SEC); + + VSH_SET_THROTTLE_GROUP(total-bytes-sec-max-length, TOTAL_BYTES_SEC_MAX= _LENGTH); + VSH_SET_THROTTLE_GROUP(read-bytes-sec-max-length, READ_BYTES_SEC_MAX_L= ENGTH); + VSH_SET_THROTTLE_GROUP(write-bytes-sec-max-length, WRITE_BYTES_SEC_MAX= _LENGTH); + VSH_SET_THROTTLE_GROUP(total-iops-sec-max-length, TOTAL_IOPS_SEC_MAX_L= ENGTH); + VSH_SET_THROTTLE_GROUP(read-iops-sec-max-length, READ_IOPS_SEC_MAX_LEN= GTH); + VSH_SET_THROTTLE_GROUP(write-iops-sec-max-length, WRITE_IOPS_SEC_MAX_L= ENGTH); +#undef VSH_SET_THROTTLE_GROUP + + if (vshCommandOptString(ctl, cmd, "group-name", &group_name) < 0) { + goto cleanup; + } + + if (group_name) { + if (virTypedParamsAddString(¶ms, &nparams, &maxparams, + VIR_DOMAIN_BLOCK_IOTUNE_GROUP_NAME, + group_name) < 0) + goto save_error; + } + + if (virDomainSetThrottleGroup(dom, group_name, params, nparams, flags)= < 0) + goto error; + vshPrintExtra(ctl, "%s", _("Throttle group set successfully\n")); + + ret =3D true; + + cleanup: + virTypedParamsFree(params, nparams); + return ret; + + save_error: + vshSaveLibvirtError(); + error: + vshError(ctl, "%s", _("Unable to change throttle group")); + goto cleanup; + + interror: + vshError(ctl, "%s", _("Unable to parse integer parameter")); + goto cleanup; +} + + +/* + * "throttlegroupdel" command + */ +static const vshCmdInfo info_throttlegroupdel =3D { + .help =3D N_("Delete a throttling group."), + .desc =3D N_("Delete a throttling group."), +}; + + +static const vshCmdOptDef opts_throttlegroupdel[] =3D { + VIRSH_COMMON_OPT_DOMAIN_FULL(0), + {.name =3D "group-name", + .type =3D VSH_OT_STRING, + .positional =3D true, + .required =3D true, + .completer =3D virshCompleteEmpty, + .help =3D N_("throttle group name") + }, + VIRSH_COMMON_OPT_DOMAIN_CONFIG, + VIRSH_COMMON_OPT_DOMAIN_LIVE, + VIRSH_COMMON_OPT_DOMAIN_CURRENT, + {.name =3D NULL} +}; + + +static bool +cmdThrottleGroupDel(vshControl *ctl, + const vshCmd *cmd) +{ + g_autoptr(virshDomain) dom =3D NULL; + const char *group_name =3D NULL; + bool config =3D vshCommandOptBool(cmd, "config"); + bool live =3D vshCommandOptBool(cmd, "live"); + bool current =3D vshCommandOptBool(cmd, "current"); + unsigned int flags =3D VIR_DOMAIN_AFFECT_CURRENT; + + VSH_EXCLUSIVE_OPTIONS_VAR(current, live); + VSH_EXCLUSIVE_OPTIONS_VAR(current, config); + + if (config) + flags |=3D VIR_DOMAIN_AFFECT_CONFIG; + if (live) + flags |=3D VIR_DOMAIN_AFFECT_LIVE; + + if (!(dom =3D virshCommandOptDomain(ctl, cmd, NULL))) + return false; + + if (vshCommandOptString(ctl, cmd, "group-name", &group_name) < 0) { + return false; + } + + if (virDomainDelThrottleGroup(dom, group_name, flags) < 0) + return false; + vshPrintExtra(ctl, "%s", _("Throttle group deleted successfully\n")); + + return true; +} + + +/* + * "throttlegroupinfo" command + */ +static const vshCmdInfo info_throttlegroupinfo =3D { + .help =3D N_("Get a throttling group."), + .desc =3D N_("Get a throttling group."), +}; + + +static const vshCmdOptDef opts_throttlegroupinfo[] =3D { + VIRSH_COMMON_OPT_DOMAIN_FULL(0), + {.name =3D "group-name", + .type =3D VSH_OT_STRING, + .positional =3D true, + .required =3D true, + .completer =3D virshCompleteEmpty, + .help =3D N_("throttle group name") + }, + VIRSH_COMMON_OPT_DOMAIN_CONFIG, + VIRSH_COMMON_OPT_DOMAIN_LIVE, + VIRSH_COMMON_OPT_DOMAIN_CURRENT, + {.name =3D NULL} +}; + + +static bool +cmdThrottleGroupInfo(vshControl *ctl, + const vshCmd *cmd) +{ + g_autoptr(virshDomain) dom =3D NULL; + const char *name; + const char *group_name =3D NULL; + int nparams =3D 0; + virTypedParameterPtr params =3D NULL; + unsigned int flags =3D VIR_DOMAIN_AFFECT_CURRENT; + size_t i; + bool current =3D vshCommandOptBool(cmd, "current"); + bool config =3D vshCommandOptBool(cmd, "config"); + bool live =3D vshCommandOptBool(cmd, "live"); + bool ret =3D false; + + VSH_EXCLUSIVE_OPTIONS_VAR(current, live); + VSH_EXCLUSIVE_OPTIONS_VAR(current, config); + + if (config) + flags |=3D VIR_DOMAIN_AFFECT_CONFIG; + if (live) + flags |=3D VIR_DOMAIN_AFFECT_LIVE; + + if (!(dom =3D virshCommandOptDomain(ctl, cmd, &name))) + goto cleanup; + + if (vshCommandOptString(ctl, cmd, "group-name", &group_name) < 0) { + goto cleanup; + } + + if (virDomainGetThrottleGroup(dom, group_name, ¶ms, &nparams, flag= s) !=3D 0) { + vshError(ctl, "%s", + _("Unable to get throttle group parameters")); + goto cleanup; + } + + for (i =3D 0; i < nparams; i++) { + g_autofree char *str =3D vshGetTypedParamValue(ctl, ¶ms[i]); + vshPrint(ctl, "%-15s: %s\n", params[i].field, str); + } + + ret =3D true; + + cleanup: + virTypedParamsFree(params, nparams); + return ret; +} + + /* * "blkiotune" command */ @@ -13378,6 +13782,30 @@ const vshCmdDef domManagementCmds[] =3D { .info =3D &info_blkdeviotune, .flags =3D 0 }, + {.name =3D "throttlegroupset", + .handler =3D cmdThrottleGroupSet, + .opts =3D opts_throttlegroupset, + .info =3D &info_throttlegroupset, + .flags =3D 0 + }, + {.name =3D "throttlegroupdel", + .handler =3D cmdThrottleGroupDel, + .opts =3D opts_throttlegroupdel, + .info =3D &info_throttlegroupdel, + .flags =3D 0 + }, + {.name =3D "throttlegroupinfo", + .handler =3D cmdThrottleGroupInfo, + .opts =3D opts_throttlegroupinfo, + .info =3D &info_throttlegroupinfo, + .flags =3D 0 + }, + {.name =3D "throttlegrouplist", + .handler =3D cmdThrottleGroupList, + .opts =3D opts_throttlegrouplist, + .info =3D &info_throttlegrouplist, + .flags =3D 0 + }, {.name =3D "blkiotune", .handler =3D cmdBlkiotune, .opts =3D opts_blkiotune, --=20 2.34.1