Re: [PATCH 3/5] block_resize: Implement qemu monitor functions

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

 



On Tue, Nov 29, 2011 at 04:27:34PM +0800, Osier Yang wrote:
> Implements functions for both HMP and QMP mode.
> 
> For HMP mode, qemu uses "M" as the units by default, so the passed "sized"
> is divided by 1024.
> 
> For QMP mode, qemu uses "Bytes" as the units by default, the passed "sized"
> is multiplied by 1024.
> 
> All of the monitor functions return -1 on failure, 0 on success, or -2 if
> not supported.
> ---
>  src/qemu/qemu_monitor.c      |   15 +++++++++++++++
>  src/qemu/qemu_monitor.h      |    5 +++--
>  src/qemu/qemu_monitor_json.c |   32 ++++++++++++++++++++++++++++++++
>  src/qemu/qemu_monitor_json.h |    4 +++-
>  src/qemu/qemu_monitor_text.c |   33 +++++++++++++++++++++++++++++++++
>  src/qemu/qemu_monitor_text.h |    4 +++-
>  6 files changed, 89 insertions(+), 4 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

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