storage: probe qcow2 volumes in gluster pool
storage: probe qcow2 volumes in gluster pool

Putting together pieces from previous patches, it is now possible
for 'virsh vol-dumpxml --pool gluster volname' to report metadata
about a qcow2 file stored on gluster.  The backing file is still
treated as raw; to fix that, more patches are needed to make the
storage backing chain analysis recursive rather than halting at
a network protocol name, but that work will not need any further
calls into libgfapi so much as just reusing this code, and that
should be the only code outside of the storage driver that needs
any help from libgfapi.  Any additional use of libgfapi within
libvirt should only be needed for implementing storage pool APIs
such as volume creation or resizing, where backing chain analysis
should be unaffected.

* src/storage/storage_backend_gluster.c
(virStorageBackendGlusterReadHeader): New helper function.
(virStorageBackendGlusterRefreshVol): Probe non-raw files.

Signed-off-by: Eric Blake <a9da18479c871fe903d9590822cfe2629c6a4d11@redhat.com>

shugaoye/libvirt,olafhering/libvirt,rlaager/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,taget/libvirt,eskultety/libvirt,jardasgit/libvirt,agx/libvirt,eskultety/libvirt,shugaoye/libvirt,shugaoye/libvirt,olafhering/libvirt,libvirt/libvirt,taget/libvirt,elmarco/libvirt,jardasgit/libvirt,elmarco/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,jardasgit/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,datto/libvirt,jardasgit/libvirt,zippy2/libvirt,taget/libvirt,VenkatDatta/libvirt,eskultety/libvirt,nertpinx/libvirt,nertpinx/libvirt,andreabolognani/libvirt,agx/libvirt,fabianfreyer/libvirt,crobinso/libvirt,shugaoye/libvirt,andreabolognani/libvirt,elmarco/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,jfehlig/libvirt,jfehlig/libvirt,andreabolognani/libvirt,olafhering/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,elmarco/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,rlaager/libvirt,cbosdo/libvirt,datto/libvirt,zhlcindy/libvirt-1.1.4-maintain,libvirt/libvirt,cbosdo/libvirt,zippy2/libvirt,rlaager/libvirt,zippy2/libvirt,rlaager/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,eskultety/libvirt,eskultety/libvirt,jardasgit/libvirt,rlaager/libvirt,agx/libvirt,VenkatDatta/libvirt,crobinso/libvirt,taget/libvirt,datto/libvirt,libvirt/libvirt,taget/libvirt,agx/libvirt,libvirt/libvirt,jfehlig/libvirt,shugaoye/libvirt,nertpinx/libvirt,nertpinx/libvirt,zippy2/libvirt,crobinso/libvirt,datto/libvirt