Re: [PATCHv4 5/6] Add virDomain{S, G}etInterfaceParameters support to qemu driver

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

 



On 12/29/2011 12:33 AM, Hu Tao wrote:
> * src/qemu/qemu_driver.c: implement the qemu driver support
> ---
>  src/qemu/qemu_driver.c |  353 ++++++++++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 353 insertions(+), 0 deletions(-)

> +        if (STREQ(param->field, VIR_DOMAIN_BANDWIDTH_IN_AVERAGE)) {
> +            if (param->type != VIR_TYPED_PARAM_UINT) {
> +                qemuReportError(VIR_ERR_INVALID_ARG, "%s",
> +                                _("invalid type for bandwidth average tunable, expected a 'unsigned int'"));

s/a 'unsigned int'/an 'unsigned int'/
Also, these are long lines.

> +    /* average is mandatory, peak and burst is optional. So if no

s/peak and burst is/peak and burst are/

> +     * average is given, we free inbound/outbound here which causes
> +     * inbound/outbound won't be set. */

s/won't be/to not be/

> +        /* virNetDevBandwidthSet() will clear any previous value of
> +         * bandwidth parameters, so merge with old bandwidth parameters
> +         * here to prevent them from losing. */

s/from losing/from being lost/

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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]