2010-11-12 13:23:55 +00:00
|
|
|
<?xml version="1.0"?>
|
2009-08-05 09:56:56 +00:00
|
|
|
<!-- A Relax NG schema for the libvirt storage pool XML format -->
|
2009-01-27 15:29:53 +00:00
|
|
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
|
|
|
|
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
2020-09-30 11:54:58 +00:00
|
|
|
<include href="basictypes.rng"/>
|
|
|
|
<include href="storagecommon.rng"/>
|
2009-01-27 15:29:53 +00:00
|
|
|
<start>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="pool"/>
|
2009-01-27 15:29:53 +00:00
|
|
|
</start>
|
|
|
|
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="pool">
|
|
|
|
<element name="pool">
|
2009-01-27 15:29:53 +00:00
|
|
|
<choice>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="pooldir"/>
|
|
|
|
<ref name="poolfs"/>
|
|
|
|
<ref name="poolnetfs"/>
|
|
|
|
<ref name="poollogical"/>
|
|
|
|
<ref name="pooldisk"/>
|
|
|
|
<ref name="pooliscsi"/>
|
|
|
|
<ref name="pooliscsidirect"/>
|
|
|
|
<ref name="poolscsi"/>
|
|
|
|
<ref name="poolmpath"/>
|
|
|
|
<ref name="poolrbd"/>
|
|
|
|
<ref name="poolsheepdog"/>
|
|
|
|
<ref name="poolgluster"/>
|
|
|
|
<ref name="poolzfs"/>
|
|
|
|
<ref name="poolvstorage"/>
|
2009-01-27 15:29:53 +00:00
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="pooldir">
|
|
|
|
<attribute name="type">
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>dir</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcedir"/>
|
|
|
|
<ref name="target"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolfs">
|
|
|
|
<attribute name="type">
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>fs</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcefs"/>
|
|
|
|
<ref name="target"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2019-01-07 22:14:57 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="fs_mount_opts"/>
|
2019-01-07 22:14:57 +00:00
|
|
|
</optional>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolnetfs">
|
|
|
|
<attribute name="type">
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>netfs</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcenetfs"/>
|
|
|
|
<ref name="target"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2019-01-07 22:14:57 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="fs_mount_opts"/>
|
2019-01-07 22:14:57 +00:00
|
|
|
</optional>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poollogical">
|
|
|
|
<attribute name="type">
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>logical</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonMetadataNameOptional"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcelogical"/>
|
|
|
|
<ref name="targetlogical"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="pooldisk">
|
|
|
|
<attribute name="type">
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>disk</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcedisk"/>
|
|
|
|
<ref name="target"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="pooliscsi">
|
|
|
|
<attribute name="type">
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>iscsi</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourceiscsi"/>
|
|
|
|
<ref name="target"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="pooliscsidirect">
|
|
|
|
<attribute name="type">
|
2018-07-31 08:44:21 +00:00
|
|
|
<value>iscsi-direct</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
2018-07-31 08:44:21 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sizing"/>
|
2018-07-31 08:44:21 +00:00
|
|
|
</optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourceiscsidirect"/>
|
2018-07-31 08:44:21 +00:00
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolscsi">
|
|
|
|
<attribute name="type">
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>scsi</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcescsi"/>
|
|
|
|
<ref name="target"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolmpath">
|
|
|
|
<attribute name="type">
|
2009-10-08 22:06:10 +00:00
|
|
|
<value>mpath</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonmetadata"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourcempath"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="target"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-10-08 22:06:10 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolrbd">
|
|
|
|
<attribute name="type">
|
2012-05-14 09:06:42 +00:00
|
|
|
<value>rbd</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonMetadataNameOptional"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcerbd"/>
|
|
|
|
<ref name="refresh"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2019-01-08 14:28:03 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="rbd_config_opts"/>
|
2019-01-08 14:28:03 +00:00
|
|
|
</optional>
|
2012-05-14 09:06:42 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolsheepdog">
|
|
|
|
<attribute name="type">
|
2012-07-18 19:06:58 +00:00
|
|
|
<value>sheepdog</value>
|
|
|
|
</attribute>
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonMetadataNameOptional"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcesheepdog"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2012-07-18 19:06:58 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolgluster">
|
|
|
|
<attribute name="type">
|
2013-10-15 23:06:18 +00:00
|
|
|
<value>gluster</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonMetadataNameOptional"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcegluster"/>
|
2013-10-15 23:06:18 +00:00
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolzfs">
|
|
|
|
<attribute name="type">
|
2014-07-21 14:38:42 +00:00
|
|
|
<value>zfs</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonMetadataNameOptional"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcezfs"/>
|
2014-09-07 14:01:34 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="target"/>
|
2014-09-07 14:01:34 +00:00
|
|
|
</optional>
|
2014-07-21 14:38:42 +00:00
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="poolvstorage">
|
|
|
|
<attribute name="type">
|
2017-01-17 14:10:59 +00:00
|
|
|
<value>vstorage</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="commonMetadataNameOptional"/>
|
|
|
|
<ref name="sizing"/>
|
|
|
|
<ref name="features"/>
|
|
|
|
<ref name="sourcevstorage"/>
|
|
|
|
<ref name="target"/>
|
2017-01-17 14:10:59 +00:00
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfovendor">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="vendor">
|
|
|
|
<attribute name="name">
|
2013-10-15 22:59:48 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="product">
|
|
|
|
<attribute name="name">
|
2013-10-15 22:59:48 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
2010-08-17 17:44:27 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="commonMetadataNameOptional">
|
2017-03-28 13:07:50 +00:00
|
|
|
<interleave>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="name">
|
2021-01-06 15:51:21 +00:00
|
|
|
<ref name="objectName"/>
|
2017-03-28 13:07:50 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="uuid">
|
|
|
|
<ref name="UUID"/>
|
2017-03-28 13:07:50 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="commonmetadata">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="name">
|
2021-01-06 15:51:21 +00:00
|
|
|
<ref name="objectName"/>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
2013-10-15 22:59:48 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="uuid">
|
|
|
|
<ref name="UUID"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sizing">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="capacity">
|
|
|
|
<ref name="scaledInteger"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="allocation">
|
|
|
|
<ref name="scaledInteger"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="available">
|
|
|
|
<ref name="scaledInteger"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="features">
|
2020-07-17 18:32:18 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="features">
|
2020-07-17 18:32:18 +00:00
|
|
|
<interleave>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="cow">
|
2020-07-17 18:32:18 +00:00
|
|
|
<attribute name="state">
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="virYesNo"/>
|
2020-07-17 18:32:18 +00:00
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="target">
|
|
|
|
<element name="target">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="path">
|
|
|
|
<ref name="absFilePath"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</element>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="permissions"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="targetlogical">
|
|
|
|
<element name="target">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="path">
|
|
|
|
<ref name="absFilePath"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="permissions"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2013-04-30 11:48:46 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfohost">
|
2012-05-14 09:06:42 +00:00
|
|
|
<oneOrMore>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="host">
|
|
|
|
<attribute name="name">
|
2019-04-28 02:29:53 +00:00
|
|
|
<choice>
|
|
|
|
<ref name="dnsName"/>
|
|
|
|
<ref name="ipAddr"/>
|
|
|
|
</choice>
|
2010-11-12 13:23:55 +00:00
|
|
|
</attribute>
|
2012-05-14 09:06:42 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="port">
|
2012-05-14 09:06:42 +00:00
|
|
|
<ref name="PortNumber"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</oneOrMore>
|
2009-01-27 15:29:53 +00:00
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfodev">
|
|
|
|
<element name="device">
|
|
|
|
<attribute name="path">
|
2010-03-01 19:09:26 +00:00
|
|
|
<choice>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="absFilePath"/>
|
|
|
|
<ref name="genericName"/>
|
|
|
|
<ref name="IscsiQualifiedName"/>
|
2010-03-01 19:09:26 +00:00
|
|
|
</choice>
|
2009-01-27 15:29:53 +00:00
|
|
|
</attribute>
|
|
|
|
<choice>
|
2010-03-01 19:09:26 +00:00
|
|
|
<empty/>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="devextents"/>
|
2009-01-27 15:29:53 +00:00
|
|
|
</choice>
|
2016-01-07 11:57:28 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="part_separator">
|
|
|
|
<ref name="virYesNo"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfodeviscsidirect">
|
|
|
|
<element name="device">
|
|
|
|
<attribute name="path">
|
|
|
|
<ref name="IscsiQualifiedName"/>
|
2018-07-31 08:44:21 +00:00
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="devextents">
|
2009-01-27 15:29:53 +00:00
|
|
|
<oneOrMore>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="freeExtent">
|
|
|
|
<attribute name="start">
|
|
|
|
<ref name="unsignedLong"/>
|
2010-03-01 19:09:26 +00:00
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="end">
|
|
|
|
<ref name="unsignedLong"/>
|
2010-03-01 19:09:26 +00:00
|
|
|
</attribute>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</oneOrMore>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfodir">
|
|
|
|
<element name="dir">
|
|
|
|
<attribute name="path">
|
|
|
|
<ref name="absDirPath"/>
|
2009-01-27 15:29:53 +00:00
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfonetrelativepath">
|
|
|
|
<element name="dir">
|
|
|
|
<attribute name="path">
|
|
|
|
<ref name="dirPath"/>
|
2014-05-28 13:47:38 +00:00
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfoname">
|
|
|
|
<element name="name">
|
2009-01-27 15:29:53 +00:00
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfoauth">
|
|
|
|
<element name="auth">
|
|
|
|
<attribute name="type">
|
2009-10-08 22:06:10 +00:00
|
|
|
<choice>
|
|
|
|
<value>chap</value>
|
2012-05-14 09:06:42 +00:00
|
|
|
<value>ceph</value>
|
2009-10-08 22:06:10 +00:00
|
|
|
</choice>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="username">
|
2013-07-13 18:29:55 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoauthsecret"/>
|
2012-05-14 09:06:42 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceinfoauthsecret">
|
|
|
|
<element name="secret">
|
2012-05-14 09:06:42 +00:00
|
|
|
<choice>
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="uuid">
|
2012-05-14 09:06:42 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="usage">
|
2012-05-14 09:06:42 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</choice>
|
2009-10-08 22:06:10 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcezfs">
|
|
|
|
<element name="source">
|
2014-07-21 14:38:42 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoname"/>
|
2014-09-07 14:01:34 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfodev"/>
|
2014-09-07 14:01:34 +00:00
|
|
|
</optional>
|
2014-07-21 14:38:42 +00:00
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcevstorage">
|
|
|
|
<element name="source">
|
2017-01-17 14:10:59 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoname"/>
|
2017-01-17 14:10:59 +00:00
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcefmtfs">
|
2009-01-27 15:29:53 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="format">
|
|
|
|
<attribute name="type">
|
2010-03-01 19:09:26 +00:00
|
|
|
<choice>
|
|
|
|
<value>auto</value>
|
|
|
|
<value>ext2</value>
|
|
|
|
<value>ext3</value>
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>ext4</value>
|
2010-03-01 19:09:26 +00:00
|
|
|
<value>ufs</value>
|
|
|
|
<value>iso9660</value>
|
|
|
|
<value>udf</value>
|
2009-01-27 15:29:53 +00:00
|
|
|
<value>gfs</value>
|
2010-03-01 19:09:26 +00:00
|
|
|
<value>gfs2</value>
|
|
|
|
<value>vfat</value>
|
|
|
|
<value>hfs+</value>
|
|
|
|
<value>xfs</value>
|
|
|
|
<value>ocfs2</value>
|
2019-11-15 11:45:19 +00:00
|
|
|
<value>vmfs</value>
|
2010-03-01 19:09:26 +00:00
|
|
|
</choice>
|
|
|
|
</attribute>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcefmtnetfs">
|
2009-01-27 15:29:53 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="format">
|
|
|
|
<attribute name="type">
|
2010-03-01 19:09:26 +00:00
|
|
|
<choice>
|
|
|
|
<value>auto</value>
|
|
|
|
<value>nfs</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcefmtdisk">
|
2009-01-27 15:29:53 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="format">
|
|
|
|
<attribute name="type">
|
2010-03-01 19:09:26 +00:00
|
|
|
<choice>
|
2015-06-08 12:15:17 +00:00
|
|
|
<value>unknown</value>
|
2010-03-01 19:09:26 +00:00
|
|
|
<value>dos</value>
|
|
|
|
<value>dvh</value>
|
|
|
|
<value>gpt</value>
|
|
|
|
<value>mac</value>
|
|
|
|
<value>bsd</value>
|
|
|
|
<value>pc98</value>
|
|
|
|
<value>sun</value>
|
|
|
|
<value>lvm2</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
2010-08-17 17:44:27 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2010-08-17 17:44:27 +00:00
|
|
|
</optional>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcefmtlogical">
|
2009-01-27 15:29:53 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="format">
|
|
|
|
<attribute name="type">
|
2010-03-01 19:09:26 +00:00
|
|
|
<choice>
|
2020-09-30 11:54:58 +00:00
|
|
|
<value>unknown</value> <!-- back-compat requires keeping "unknown" not "auto" -->
|
2010-03-01 19:09:26 +00:00
|
|
|
<value>lvm2</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
2010-08-17 17:44:27 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2010-08-17 17:44:27 +00:00
|
|
|
</optional>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcedir">
|
2009-01-27 15:29:53 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="source">
|
2010-03-01 19:09:26 +00:00
|
|
|
<empty/>
|
2010-08-17 17:44:27 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2010-08-17 17:44:27 +00:00
|
|
|
</optional>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
2010-08-17 17:44:27 +00:00
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcefs">
|
|
|
|
<element name="source">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfodev"/>
|
|
|
|
<ref name="sourcefmtfs"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcenetfs">
|
|
|
|
<element name="source">
|
2014-05-28 13:47:38 +00:00
|
|
|
<choice>
|
|
|
|
<group>
|
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfohost"/>
|
|
|
|
<ref name="sourceinfodir"/>
|
|
|
|
<ref name="sourcefmtnetfs"/>
|
2019-01-11 00:23:27 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="protocol">
|
|
|
|
<attribute name="ver">
|
|
|
|
<ref name="unsignedInt"/>
|
2019-01-11 00:23:27 +00:00
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2014-05-28 13:47:38 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2014-05-28 13:47:38 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfohost"/>
|
|
|
|
<ref name="sourceinfonetrelativepath"/>
|
|
|
|
<element name="format">
|
|
|
|
<attribute name="type">
|
2015-06-03 15:43:00 +00:00
|
|
|
<choice>
|
|
|
|
<value>cifs</value>
|
|
|
|
<value>glusterfs</value>
|
|
|
|
</choice>
|
2014-05-28 13:47:38 +00:00
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2014-05-28 13:47:38 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
</choice>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcelogical">
|
|
|
|
<element name="source">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
|
|
|
<oneOrMore>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoname"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfodev"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
</oneOrMore>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourcefmtlogical"/>
|
2009-10-08 22:06:10 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2009-10-08 22:06:10 +00:00
|
|
|
</optional>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcedisk">
|
|
|
|
<element name="source">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfodev"/>
|
|
|
|
<ref name="sourcefmtdisk"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceiscsi">
|
|
|
|
<element name="source">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfohost"/>
|
|
|
|
<ref name="sourceinfodev"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="initiatorinfo"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoauth"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourceiscsidirect">
|
|
|
|
<element name="source">
|
2018-07-31 08:44:21 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfohost"/>
|
|
|
|
<ref name="sourceinfodeviscsidirect"/>
|
|
|
|
<ref name="initiatorinfo"/>
|
2018-07-31 08:44:21 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoauth"/>
|
2018-07-31 08:44:21 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcescsi">
|
|
|
|
<element name="source">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoadapter"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfovendor"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
2009-01-27 15:29:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcempath">
|
|
|
|
<element name="source">
|
2009-10-08 22:06:10 +00:00
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
2009-01-27 15:29:53 +00:00
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcerbd">
|
|
|
|
<element name="source">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoname"/>
|
|
|
|
<ref name="sourceinfohost"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfoauth"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
2012-05-14 09:06:42 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcesheepdog">
|
|
|
|
<element name="source">
|
2013-10-15 22:59:48 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfohost"/>
|
|
|
|
<ref name="sourceinfoname"/>
|
2013-10-15 22:59:48 +00:00
|
|
|
</interleave>
|
2012-07-18 19:06:58 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sourcegluster">
|
|
|
|
<element name="source">
|
2013-10-15 23:06:18 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfohost"/>
|
|
|
|
<ref name="sourceinfoname"/>
|
2013-10-15 23:06:18 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sourceinfodir"/>
|
2013-10-15 23:06:18 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="IscsiQualifiedName">
|
|
|
|
<data type="string">
|
2013-03-20 10:45:29 +00:00
|
|
|
<param name="pattern">iqn\.[0-9]{4}-(0[1-9]|1[0-2])\.[a-zA-Z0-9\.\-]+(:.+)?</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="refresh">
|
2019-03-19 13:42:17 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="refresh">
|
2019-03-19 13:42:17 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="refreshVolume"/>
|
2019-03-19 13:42:17 +00:00
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="refreshVolume">
|
2019-03-19 13:42:17 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="volume">
|
2019-03-19 13:42:17 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="allocation">
|
2019-03-19 13:42:17 +00:00
|
|
|
<ref name="refreshVolumeAllocation"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2019-01-07 22:14:57 +00:00
|
|
|
<!--
|
|
|
|
Optional storage pool extensions in their own namespace:
|
|
|
|
"fs" or "netfs"
|
|
|
|
-->
|
|
|
|
|
|
|
|
<define name="fs_mount_opts">
|
2019-01-31 11:14:09 +00:00
|
|
|
<element name="mount_opts" ns="http://libvirt.org/schemas/storagepool/fs/1.0">
|
2019-01-07 22:14:57 +00:00
|
|
|
<zeroOrMore>
|
|
|
|
<element name="option">
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="name">
|
2019-01-07 22:14:57 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</zeroOrMore>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2019-01-08 14:28:03 +00:00
|
|
|
<!--
|
|
|
|
Optional storage pool extensions in their own namespace:
|
|
|
|
RBD
|
|
|
|
-->
|
|
|
|
|
|
|
|
<define name="rbd_config_opts">
|
2019-01-31 11:14:09 +00:00
|
|
|
<element name="config_opts" ns="http://libvirt.org/schemas/storagepool/rbd/1.0">
|
2019-01-08 14:28:03 +00:00
|
|
|
<zeroOrMore>
|
|
|
|
<element name="option">
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="name">
|
2019-01-08 14:28:03 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<attribute name="value">
|
2019-01-08 14:28:03 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</zeroOrMore>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2009-01-27 15:29:53 +00:00
|
|
|
</grammar>
|