mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
1458b2e963
Take advantage of the previous patch's addition of 'netdir' as a distinct volume type, to expose rather than silently skip directories embedded in a gluster pool. Also serves as an XML validation for the previous patch. * src/storage/storage_backend_gluster.c (virStorageBackendGlusterRefreshVol): Don't skip directories. * tests/storagevolxml2xmltest.c (mymain): Add test. * tests/storagevolxml2xmlin/vol-gluster-dir.xml: New file. * tests/storagevolxml2xmlout/vol-gluster-dir.xml: Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
18 lines
396 B
XML
18 lines
396 B
XML
<volume type='netdir'>
|
|
<name>dir</name>
|
|
<key>vol/dir</key>
|
|
<source>
|
|
</source>
|
|
<capacity unit='bytes'>0</capacity>
|
|
<allocation unit='bytes'>0</allocation>
|
|
<target>
|
|
<path>gluster://example.com/vol/dir</path>
|
|
<format type='dir'/>
|
|
<permissions>
|
|
<mode>0600</mode>
|
|
<owner>4294967295</owner>
|
|
<group>4294967295</group>
|
|
</permissions>
|
|
</target>
|
|
</volume>
|