storage: document gluster pool

Add support for a new <pool type='gluster'>, similar to
RBD and Sheepdog.  Terminology wise, a gluster volume
forms a libvirt storage pool, within the gluster volume,
individual files are treated as libvirt storage volumes.

* docs/schemas/storagepool.rng (poolgluster): New pool type.
* docs/formatstorage.html.in: Document gluster.
* docs/storage.html.in: Likewise, and contrast it with netfs.
* tests/storagepoolxml2xmlin/pool-gluster.xml: New test.
* tests/storagepoolxml2xmlout/pool-gluster.xml: Likewise.
* tests/storagepoolxml2xmltest.c (mymain): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Eric Blake committed 2013-11-25 11:03:19 -07:00
1 parent 318ea3cb77
commit ed5fa7f393
8 files changed
+168 -7

No files matched your search

@@ -0,0 +1,9 @@
<pool type='gluster'>
<source>
<name>volume</name>
<dir path='/sub'/>
<host name='localhost'/>
</source>
<name>mygluster</name>
<uuid>65fcba04-5b13-bd93-cff3-52ce48e11ad8</uuid>
</pool>
@@ -0,0 +1,8 @@
<pool type='gluster'>
<source>
<name>volume</name>
<host name='localhost'/>
</source>
<name>mygluster</name>
<uuid>65fcba04-5b13-bd93-cff3-52ce48e11ad8</uuid>
</pool>
@@ -0,0 +1,12 @@
<pool type='gluster'>
<name>mygluster</name>
<uuid>65fcba04-5b13-bd93-cff3-52ce48e11ad8</uuid>
<capacity unit='bytes'>0</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>0</available>
<source>
<host name='localhost'/>
<dir path='/sub'/>
<name>volume</name>
</source>
</pool>
@@ -0,0 +1,12 @@
<pool type='gluster'>
<name>mygluster</name>
<uuid>65fcba04-5b13-bd93-cff3-52ce48e11ad8</uuid>
<capacity unit='bytes'>0</capacity>
<allocation unit='bytes'>0</allocation>
<available unit='bytes'>0</available>
<source>
<host name='localhost'/>
<dir path='/'/>
<name>volume</name>
</source>
</pool>
+2
View File
@@ -102,6 +102,8 @@ mymain(void)
DO_TEST("pool-iscsi-multiiqn");
DO_TEST("pool-iscsi-vendor-product");
DO_TEST("pool-sheepdog");
DO_TEST("pool-gluster");
DO_TEST("pool-gluster-sub");
return ret==0 ? EXIT_SUCCESS : EXIT_FAILURE;
}