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

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

 



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

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]