2013-01-23 15:03:17 +00:00
|
|
|
<?xml version="1.0"?>
|
2014-04-12 01:33:45 +00:00
|
|
|
<!-- A Relax NG schema for common libvirt XML storage elements -->
|
2009-08-19 19:50:10 +00:00
|
|
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
|
|
|
|
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
|
|
|
2014-04-12 01:33:45 +00:00
|
|
|
<!-- This schema is not designed for standalone use; another file
|
|
|
|
must include both this file and basictypes.rng -->
|
|
|
|
|
2017-10-03 11:14:04 +00:00
|
|
|
<define name="poolName">
|
|
|
|
<data type="string">
|
|
|
|
<!-- Use literal newline instead of \n for bug in libxml2 2.7.6 -->
|
|
|
|
<param name="pattern">[^/
|
|
|
|
]+</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
|
2009-08-19 19:50:10 +00:00
|
|
|
<define name='encryption'>
|
|
|
|
<element name='encryption'>
|
|
|
|
<attribute name='format'>
|
|
|
|
<choice>
|
|
|
|
<value>default</value>
|
|
|
|
<value>qcow</value>
|
2016-06-01 19:01:31 +00:00
|
|
|
<value>luks</value>
|
2009-08-19 19:50:10 +00:00
|
|
|
</choice>
|
|
|
|
</attribute>
|
2016-06-01 23:21:26 +00:00
|
|
|
<interleave>
|
2018-12-12 02:54:27 +00:00
|
|
|
<ref name='secret'/>
|
2016-06-01 23:21:26 +00:00
|
|
|
<optional>
|
|
|
|
<element name='cipher'>
|
|
|
|
<ref name='keycipher'/>
|
|
|
|
</element>
|
|
|
|
<element name='ivgen'>
|
|
|
|
<ref name='keyivgen'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
2009-08-19 19:50:10 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2018-08-07 11:28:24 +00:00
|
|
|
<define name='initiatorinfo'>
|
|
|
|
<element name='initiator'>
|
|
|
|
<element name='iqn'>
|
|
|
|
<attribute name='name'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2017-11-27 10:54:33 +00:00
|
|
|
<define name="reconnect">
|
|
|
|
<element name="reconnect">
|
|
|
|
<attribute name="enabled">
|
|
|
|
<ref name="virYesNo"/>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name="timeout">
|
|
|
|
<ref name="unsignedInt"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='unixSocketSource'>
|
|
|
|
<element name="source">
|
|
|
|
<attribute name="type">
|
|
|
|
<value>unix</value>
|
|
|
|
</attribute>
|
|
|
|
<attribute name="path">
|
|
|
|
<ref name="absFilePath"/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name="mode">
|
|
|
|
<choice>
|
|
|
|
<value>server</value>
|
|
|
|
<value>client</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<ref name="reconnect"/>
|
|
|
|
</optional>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='reservations'>
|
|
|
|
<element name='reservations'>
|
|
|
|
<optional>
|
|
|
|
<attribute name='managed'>
|
|
|
|
<ref name='virYesNo'/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<ref name='unixSocketSource'/>
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2009-08-19 19:50:10 +00:00
|
|
|
<define name='secret'>
|
|
|
|
<element name='secret'>
|
|
|
|
<attribute name='type'>
|
2017-09-07 09:58:26 +00:00
|
|
|
<value>passphrase</value>
|
2009-08-19 19:50:10 +00:00
|
|
|
</attribute>
|
2016-05-30 11:47:46 +00:00
|
|
|
<choice>
|
|
|
|
<attribute name='uuid'>
|
|
|
|
<ref name="UUID"/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='usage'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</choice>
|
2009-08-19 19:50:10 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2014-04-12 01:33:45 +00:00
|
|
|
<define name='compat'>
|
|
|
|
<element name='compat'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name='pattern'>[0-9]+\.[0-9]+</param>
|
|
|
|
</data>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
<define name='fileFormatFeatures'>
|
|
|
|
<element name='features'>
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<element name='lazy_refcounts'>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2014-04-14 22:54:14 +00:00
|
|
|
<!-- split the list of known storage formats into two, those where
|
|
|
|
we know how to follow backing chains, and all others -->
|
|
|
|
<define name='storageFormatBacking'>
|
|
|
|
<choice>
|
|
|
|
<value>cow</value>
|
|
|
|
<value>qcow</value>
|
|
|
|
<value>qcow2</value>
|
|
|
|
<value>qed</value>
|
|
|
|
<value>vmdk</value>
|
|
|
|
</choice>
|
|
|
|
</define>
|
2014-04-14 22:54:13 +00:00
|
|
|
<define name='storageFormat'>
|
|
|
|
<choice>
|
|
|
|
<value>raw</value>
|
|
|
|
<value>dir</value>
|
|
|
|
<value>bochs</value>
|
|
|
|
<value>cloop</value>
|
|
|
|
<value>dmg</value>
|
|
|
|
<value>iso</value>
|
|
|
|
<value>vpc</value>
|
2014-04-14 22:54:14 +00:00
|
|
|
<value>vdi</value>
|
2014-04-14 22:54:13 +00:00
|
|
|
<value>fat</value>
|
|
|
|
<value>vhd</value>
|
2015-01-13 11:27:36 +00:00
|
|
|
<value>ploop</value>
|
2016-06-01 19:01:31 +00:00
|
|
|
<value>luks</value>
|
2014-04-14 22:54:14 +00:00
|
|
|
<ref name='storageFormatBacking'/>
|
2014-04-14 22:54:13 +00:00
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2014-04-14 22:54:15 +00:00
|
|
|
<define name='storageStartupPolicy'>
|
|
|
|
<!-- Use a combine='choice' override in client files that want to
|
|
|
|
add additional attributes to a <source> sub-element
|
|
|
|
associated with a storage source -->
|
|
|
|
<notAllowed/>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='storageSourceExtra'>
|
|
|
|
<!-- Use a combine='choice' override in client files that want to
|
|
|
|
add additional elements as siblings of a <source> sub-element
|
|
|
|
associated with a storage source -->
|
|
|
|
<notAllowed/>
|
|
|
|
</define>
|
|
|
|
|
2014-12-10 12:54:10 +00:00
|
|
|
<define name='permissions'>
|
|
|
|
<optional>
|
|
|
|
<element name='permissions'>
|
|
|
|
<interleave>
|
2015-04-27 20:48:05 +00:00
|
|
|
<optional>
|
|
|
|
<element name='mode'>
|
|
|
|
<ref name='octalMode'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2015-05-05 15:58:12 +00:00
|
|
|
<optional>
|
|
|
|
<element name='owner'>
|
|
|
|
<choice>
|
|
|
|
<ref name='unsignedInt'/>
|
|
|
|
<value>-1</value>
|
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='group'>
|
|
|
|
<choice>
|
|
|
|
<ref name='unsignedInt'/>
|
|
|
|
<value>-1</value>
|
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2014-12-10 12:54:10 +00:00
|
|
|
<optional>
|
|
|
|
<element name='label'>
|
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2016-06-01 23:21:26 +00:00
|
|
|
<define name='keycipher'>
|
|
|
|
<attribute name='name'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='size'>
|
|
|
|
<ref name="unsignedInt"/>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name='mode'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='hash'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='keyivgen'>
|
|
|
|
<attribute name='name'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name='hash'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2019-03-19 13:42:17 +00:00
|
|
|
<define name='refreshVolumeAllocation'>
|
|
|
|
<choice>
|
|
|
|
<value>default</value>
|
|
|
|
<value>capacity</value>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2009-08-19 19:50:10 +00:00
|
|
|
</grammar>
|