mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 06:50:22 +00:00
f5580bd6d6
The RNG grammar did not allow arbitrary interleaving, which makes
it harder than necessary to create a new volume from handwritten XML.
(Compare also to commit caf516db
for pools).
* docs/schemas/storagevol.rng: Support interleaving.
* tests/storagevolxml2xmlin/vol-file-backing.xml: Test it.
Signed-off-by: Eric Blake <eblake@redhat.com>
27 lines
661 B
XML
27 lines
661 B
XML
<volume>
|
|
<!-- lines scrambled to test interleaves -->
|
|
<key>/var/lib/libvirt/images/sparse.img</key>
|
|
<capacity unit='GB'>10</capacity>
|
|
<source/>
|
|
<target>
|
|
<permissions>
|
|
<owner>0744</owner>
|
|
<mode>0</mode>
|
|
<group>0</group>
|
|
</permissions>
|
|
<path>/var/lib/libvirt/images/sparse.img</path>
|
|
</target>
|
|
<allocation unit='MiB'>0</allocation>
|
|
<backingStore>
|
|
<format type='vmdk'/>
|
|
<path>/var/lib/virt/images/master.img</path>
|
|
<permissions>
|
|
<mode>0744</mode>
|
|
<label>virt_image_t</label>
|
|
<owner>1</owner>
|
|
<group>1</group>
|
|
</permissions>
|
|
</backingStore>
|
|
<name>sparse.img</name>
|
|
</volume>
|