mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
6423e30828
If there are no source extents the volume XML has an empty <source> element. Remove it if there's nothing in it by using virXMLFormatElement. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
14 lines
309 B
XML
14 lines
309 B
XML
<volume type='netdir'>
|
|
<name>dir</name>
|
|
<key>vol/dir</key>
|
|
<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>
|
|
</permissions>
|
|
</target>
|
|
</volume>
|