1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

schema: Add schema for disk <wwn>

* docs/formatdomain.html.in: Add document.
* docs/schemas/nodedev.rng: Move definition of "wwn" to ...
* docs/schemas/basictypes.rng: ...Here
* docs/schemas/domaincommon.rng: Add schema for disk <wwn>
This commit is contained in:
Osier Yang 2012-09-11 16:57:01 +08:00
parent 85edb0c8bb
commit dbb7df1f81
4 changed files with 17 additions and 6 deletions

View File

@ -1582,6 +1582,12 @@
like <code>&lt;serial&gt;WD-WMAP9A966149&lt;/serial&gt;</code>. like <code>&lt;serial&gt;WD-WMAP9A966149&lt;/serial&gt;</code>.
<span class="since">Since 0.7.1</span> <span class="since">Since 0.7.1</span>
</dd> </dd>
<dt><code>wwn</code></dt>
<dd>If present, this element specifies the WWN (World Wide Name)
of a virtual hard disk or CD-ROM drive. It must be composed
of 16 hexadecimal digits.
<span class='since'>Since 0.10.1</span>
</dd>
<dt><code>host</code></dt> <dt><code>host</code></dt>
<dd>The <code>host</code> element has two attributes "name" and "port", <dd>The <code>host</code> element has two attributes "name" and "port",
which specify the hostname and the port number. The meaning of this which specify the hostname and the port number. The meaning of this

View File

@ -213,4 +213,10 @@
</data> </data>
</define> </define>
<define name='wwn'>
<data type='string'>
<param name='pattern'>[0-9a-fA-F]{16}</param>
</data>
</define>
</grammar> </grammar>

View File

@ -892,6 +892,11 @@
<optional> <optional>
<ref name="diskBlockIo"/> <ref name="diskBlockIo"/>
</optional> </optional>
<optional>
<element name="wwn">
<ref name="wwn"/>
</element>
</optional>
</interleave> </interleave>
</define> </define>
<define name="snapshot"> <define name="snapshot">

View File

@ -245,12 +245,6 @@
</attribute> </attribute>
</define> </define>
<define name='wwn'>
<data type='string'>
<param name='pattern'>[0-9a-fA-F]{16}</param>
</data>
</define>
<define name='capsfchost'> <define name='capsfchost'>
<attribute name='type'> <attribute name='type'>
<value>fc_host</value> <value>fc_host</value>