Re: [libvirt] [PATCH] Fix disk stats retrieval with QEMU >= 0.12

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

 



On Wednesday 10 February 2010 18:49:15 Daniel P. Berrange wrote:
> With QEMU >= 0.12 the host and guest side of disks no longer have
> the same naming convention. Specifically the host side will now
> get a 'drive-' prefix added to its name. The 'info blockstats'
> monitor command returns the host side name, so it is neccessary
> to strip this off when looking up stats since libvirt stores the
> guest side name !
>
> * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Move 'drive-' prefix
>   string to a defined constant
> * src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_text.c: Strip
>   off 'drive-' prefix (if found) when looking up disk stats
> ---
>  src/qemu/qemu_conf.c         |    4 ++--
>  src/qemu/qemu_conf.h         |    2 ++
>  src/qemu/qemu_monitor_json.c |    7 +++++++
>  src/qemu/qemu_monitor_text.c |    7 +++++++
>  4 files changed, 18 insertions(+), 2 deletions(-)
> [...]

Thanks a lot, fixes the problem also for qemu-kvm-0.12.2


-t

--
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]