
On Fri, Nov 22, 2013 at 08:20:28PM -0700, Eric Blake wrote:
We already had code for handling allocation different than capacity for sparse files; we just had to wire it up to be used when inspecting gluster images.
* src/storage/storage_backend.c (virStorageBackendUpdateVolTargetInfoFD): Handle no fd. * src/storage/storage_backend_gluster.c (virStorageBackendGlusterRefreshVol): Handle sparse files.
Signed-off-by: Eric Blake <eblake@redhat.com> --- src/storage/storage_backend.c | 8 ++++---- src/storage/storage_backend_gluster.c | 7 ++++++- 2 files changed, 10 insertions(+), 5 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 :|