[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 9/9] throttle: add name of ThrottleGroup to Bloc

From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 9/9] throttle: add name of ThrottleGroup to BlockDeviceInfo
Date: Wed, 25 Feb 2015 08:23:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/25/2015 03:56 AM, Alberto Garcia wrote:

>> Is there a command that can return the list of all throttle group
>> names?
> Not currently, but I think I can add one easily. Any suggestion for
> the name of the command, and for the data that you would like it to
> return?

How about query-block-throttle, returning an array of dicts.  Ideas for
what it could contain would be the name of the block group, its current
settings, and the node names associated with the group.  Maybe something

=> { "execute":"query-block-throttle" }
<= { "return": [
     { "name": "throttle1", "bps_max": 100000,
       "nodes": [ "block0", "block1" ] },
     { "name": "throttle2", "iops_max": 10000,
       "nodes": [ "block2" ] }
   ] }

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]