]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: improve allocation stats reported on gluster files
authorEric Blake <eblake@redhat.com>
Mon, 18 Nov 2013 19:45:31 +0000 (12:45 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 25 Nov 2013 19:50:02 +0000 (12:50 -0700)
commit13e738cc0a02db47f8b1958759699b5b06b4d647
treeffcd59933adac6289f46baa8df235fb68200510c
parent1458b2e963c65108f691f77ac10e6ff7d6805a39
storage: improve allocation stats reported on gluster files

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
src/storage/storage_backend_gluster.c