We had incomplete RelaxNG support for storage formats listed
in virstoragefile.h: commit
027bf2e added 'vdi' but forgot
to update the <volume> and <domain> xml lists; the <volume>
list was also missing 'fat' and 'vhd'. Maintaining two lists
is a recipe for them getting out of sync, so make the list
common so that both contexts benefit the next time we add a
format in a single location.
* docs/schemas/domaincommon.rng (storageFormat): Move...
* docs/schemas/storagecommon.rng: ...here, and add vdi.
* docs/schemas/storagevol.rng (formatfile): Use common list.
Signed-off-by: Eric Blake <eblake@redhat.com>
</attribute>
</optional>
</define>
- <define name='storageFormat'>
- <choice>
- <value>raw</value>
- <value>dir</value>
- <value>bochs</value>
- <value>cloop</value>
- <value>cow</value>
- <value>dmg</value>
- <value>iso</value>
- <value>qcow</value>
- <value>qcow2</value>
- <value>qed</value>
- <value>vmdk</value>
- <value>vpc</value>
- <value>fat</value>
- <value>vhd</value>
- </choice>
- </define>
+
<define name="driverCache">
<attribute name="cache">
<choice>
</element>
</define>
+ <define name='storageFormat'>
+ <choice>
+ <value>raw</value>
+ <value>dir</value>
+ <value>bochs</value>
+ <value>cloop</value>
+ <value>cow</value>
+ <value>dmg</value>
+ <value>iso</value>
+ <value>qcow</value>
+ <value>qcow2</value>
+ <value>qed</value>
+ <value>vmdk</value>
+ <value>vpc</value>
+ <value>fat</value>
+ <value>vhd</value>
+ <value>vdi</value>
+ </choice>
+ </define>
+
</grammar>
<define name='formatfile'>
<choice>
<value>unknown</value>
- <value>raw</value>
- <value>dir</value>
- <value>bochs</value>
- <value>cloop</value>
- <value>cow</value>
- <value>dmg</value>
- <value>iso</value>
- <value>qcow</value>
- <value>qcow2</value>
- <value>qed</value>
- <value>vmdk</value>
- <value>vpc</value>
+ <ref name='storageFormat'/>
</choice>
</define>