mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 09:57:26 +03:00
schema: make source optional in volume XML
We don't parse it anyway. https://bugzilla.redhat.com/show_bug.cgi?id=893273
This commit is contained in:
parent
a07b88ee03
commit
25b98d31ec
@ -20,7 +20,9 @@
|
|||||||
<text/>
|
<text/>
|
||||||
</element>
|
</element>
|
||||||
</optional>
|
</optional>
|
||||||
|
<optional>
|
||||||
<ref name='source'/>
|
<ref name='source'/>
|
||||||
|
</optional>
|
||||||
<ref name='sizing'/>
|
<ref name='sizing'/>
|
||||||
<ref name='target'/>
|
<ref name='target'/>
|
||||||
<optional>
|
<optional>
|
||||||
|
@ -78,6 +78,7 @@ EXTRA_DIST = \
|
|||||||
storagepoolxml2xmlin \
|
storagepoolxml2xmlin \
|
||||||
storagepoolxml2xmlout \
|
storagepoolxml2xmlout \
|
||||||
storagevolxml2argvdata \
|
storagevolxml2argvdata \
|
||||||
|
storagevolschemadata \
|
||||||
storagevolschematest \
|
storagevolschematest \
|
||||||
storagevolxml2xmlin \
|
storagevolxml2xmlin \
|
||||||
storagevolxml2xmlout \
|
storagevolxml2xmlout \
|
||||||
|
29
tests/storagevolschemadata/qcow2-no-source.xml
Normal file
29
tests/storagevolschemadata/qcow2-no-source.xml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<volume>
|
||||||
|
<name>OtherDemo.img</name>
|
||||||
|
<key>/var/lib/libvirt/images/OtherDemo.img</key>
|
||||||
|
<capacity unit="G">5</capacity>
|
||||||
|
<allocation>294912</allocation>
|
||||||
|
<target>
|
||||||
|
<path>/var/lib/libvirt/images/OtherDemo.img</path>
|
||||||
|
<format type='qcow2'/>
|
||||||
|
<permissions>
|
||||||
|
<mode>0644</mode>
|
||||||
|
<owner>0</owner>
|
||||||
|
<group>0</group>
|
||||||
|
<label>unconfined_u:object_r:virt_image_t:s0</label>
|
||||||
|
</permissions>
|
||||||
|
<encryption format='qcow'>
|
||||||
|
<secret type='passphrase' uuid='e78d4b51-a2af-485f-b0f5-afca709a80f4'/>
|
||||||
|
</encryption>
|
||||||
|
</target>
|
||||||
|
<backingStore>
|
||||||
|
<path>/dev/null</path>
|
||||||
|
<format type='raw'/>
|
||||||
|
<permissions>
|
||||||
|
<mode>0644</mode>
|
||||||
|
<owner>0</owner>
|
||||||
|
<group>0</group>
|
||||||
|
<label>unconfined_u:object_r:virt_image_t:s0</label>
|
||||||
|
</permissions>
|
||||||
|
</backingStore>
|
||||||
|
</volume>
|
@ -4,7 +4,7 @@
|
|||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
. $abs_srcdir/schematestutils.sh
|
. $abs_srcdir/schematestutils.sh
|
||||||
|
|
||||||
DIRS="storagevolxml2xmlin storagevolxml2xmlout"
|
DIRS="storagevolxml2xmlin storagevolxml2xmlout storagevolschemadata"
|
||||||
SCHEMA="storagevol.rng"
|
SCHEMA="storagevol.rng"
|
||||||
|
|
||||||
check_schema "$DIRS" "$SCHEMA"
|
check_schema "$DIRS" "$SCHEMA"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user