]> xenbits.xensource.com Git - libvirt.git/commit
storage: implement rudimentary glusterfs pool refresh
authorEric Blake <eblake@redhat.com>
Wed, 30 Oct 2013 03:28:16 +0000 (21:28 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 25 Nov 2013 18:56:51 +0000 (11:56 -0700)
commitefee1af54ad58e7147442714b2baa560814f94be
tree88336299682d169d4cb38a0d873b344d6e65594e
parented5fa7f39399080b0aeb5a657fc71b75019edbe9
storage: implement rudimentary glusterfs pool refresh

Actually put gfapi to use, by allowing the creation of a gluster
pool.  Right now, all volumes are treated as raw and directories
are skipped; further patches will allow peering into files to
allow for qcow2 files and backing chains, and reporting proper
volume allocation.  This implementation was tested against Fedora
19's glusterfs 3.4.1; it might be made simpler by requiring a
higher minimum, and/or require more hacks to work with a lower
minimum.

* src/storage/storage_backend_gluster.c
(virStorageBackendGlusterRefreshPool): Initial implementation.
(virStorageBackendGlusterOpen, virStorageBackendGlusterClose)
(virStorageBackendGlusterRefreshVol): New helper functions.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/storage/storage_backend_gluster.c