[libvirt] [PATCH 1/2] qemu: Fix copy_paste_error in qemuBuildDriveStr.

Ján Tomko jtomko at redhat.com
Wed Nov 12 12:18:40 UTC 2014


On 11/12/2014 02:04 PM, Matthias Gatto wrote:
> Fix for this: http://www.redhat.com/archives/libvir-list/2014-November/msg00324.html
> 
> Signed-off-by: Matthias Gatto <matthias.gatto at outscale.com>
> ---
>  src/qemu/qemu_command.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
> index a5ed8ed..f674ba9 100644
> --- a/src/qemu/qemu_command.c
> +++ b/src/qemu/qemu_command.c
> @@ -3762,7 +3762,7 @@ qemuBuildDriveStr(virConnectPtr conn,
>                            disk->blkdeviotune.write_iops_sec_max);
>      }
>  
> -    if (disk->blkdeviotune.write_iops_sec_max) {
> +    if (disk->blkdeviotune.size_iops_sec) {
>          virBufferAsprintf(&opt, ",iops_size=%llu",
>                            disk->blkdeviotune.size_iops_sec);
>      }
> 

It would be nice to have this tested in qemuxml2argvtest.

Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141112/271c0f8f/attachment-0001.sig>


More information about the libvir-list mailing list