mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
887dd3625b
While trying to compare netfs against my new gluster pool, I discovered two things: virt-xml-validate chokes on valid xml produced by 'virsh pool-dumpxml' [yet another reason that ALL patches that add new xml should be adding corresponding tests] When using glusterfs FUSE mounts, you cannot access a subdirectory of a gluster volume. The recommended workaround in the gluster community is to mount the volume to an intermediate location, then bind-mount the desired subdirectory to the final location. Maybe we should teach libvirt to do bind-mounting, but for now I chose to just document the limitation. * docs/storage.html.in: Improve documentation. * docs/schemas/storagepool.rng (sourcefmtnetfs): Allow all formats, and drop redundant info-vendor. * tests/storagepoolxml2xmltest.c (mymain): New test. * tests/storagepoolxml2xmlin/pool-netfs-gluster.xml: New file. * tests/storagepoolxml2xmlout/pool-netfs-gluster.xml: Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
21 lines
502 B
XML
21 lines
502 B
XML
<pool type='netfs'>
|
|
<name>netfs-gluster</name>
|
|
<uuid>d5609ced-94b1-489e-b218-eff35c30336a</uuid>
|
|
<capacity unit='bytes'>0</capacity>
|
|
<allocation unit='bytes'>0</allocation>
|
|
<available unit='bytes'>0</available>
|
|
<source>
|
|
<host name='example.com'/>
|
|
<dir path='/volume'/>
|
|
<format type='glusterfs'/>
|
|
</source>
|
|
<target>
|
|
<path>/mnt/gluster</path>
|
|
<permissions>
|
|
<mode>0755</mode>
|
|
<owner>-1</owner>
|
|
<group>-1</group>
|
|
</permissions>
|
|
</target>
|
|
</pool>
|