]> xenbits.xensource.com Git - libvirt.git/commit
qemu: refactor qemuDomainGetBlockInfo to work with remote storage
authorPeter Krempa <pkrempa@redhat.com>
Mon, 7 Jul 2014 10:56:23 +0000 (12:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 8 Jul 2014 09:36:18 +0000 (11:36 +0200)
commit3ea661deeabadc3c114dfb6f662b9fd17d714a01
tree5b39e1141ba428606607748446ce08ac2d5041cd
parent912911a497d7e3a13792889428a391f2b6f305ea
qemu: refactor qemuDomainGetBlockInfo to work with remote storage

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
src/qemu/qemu_driver.c
src/util/virstoragefile.c
src/util/virstoragefile.h