[libvirt] [PATCH 4/4] qemu: refactor qemuDomainGetBlockInfo to work with remote storage

Eric Blake eblake at redhat.com
Mon Jul 7 21:10:49 UTC 2014


On 07/07/2014 06:16 AM, Peter Krempa wrote:
> The qemu block info function relied on working with local storage. Break
> this assumption by adding support for remote volumes. Unfortunately we
> still need to take a hybrid approach as some of the operations require a
> filedescriptor.
> 
> Previously you'd get:
>  $ virsh domblkinfo gl vda
>  error: cannot stat file '/img10': Bad file descriptor
> 
> Now you get some stats:
>  $ virsh domblkinfo gl vda
>  Capacity:       10485760
>  Allocation:     197120
>  Physical:       197120
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1110198
> ---
>  src/libvirt_private.syms  |  1 +
>  src/qemu/qemu_driver.c    | 84 ++++++++++++++++++++++++++++++-----------------
>  src/util/virstoragefile.c |  2 +-
>  src/util/virstoragefile.h |  3 ++
>  4 files changed, 58 insertions(+), 32 deletions(-)
> 

ACK.

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

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


More information about the libvir-list mailing list