]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: Add schema for disk <wwn>
authorOsier Yang <jyang@redhat.com>
Tue, 11 Sep 2012 08:57:01 +0000 (16:57 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 18 Sep 2012 06:42:29 +0000 (14:42 +0800)
* 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>

docs/formatdomain.html.in
docs/schemas/basictypes.rng
docs/schemas/domaincommon.rng
docs/schemas/nodedev.rng

index c05f3df9c917ce9d5f91f98cad0ee65c8fc69577..8bdfbf1758cac194886d0b329865a99524839cf6 100644 (file)
           like <code>&lt;serial&gt;WD-WMAP9A966149&lt;/serial&gt;</code>.
           <span class="since">Since 0.7.1</span>
       </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>
       <dd>The <code>host</code> element has two attributes "name" and "port",
         which specify the hostname and the port number. The meaning of this
index 766f9a08f5673c5f75ed68846626aec7733c5694..38cab16ce5106c426b52698f7c1e140f012b520a 100644 (file)
     </data>
   </define>
 
+  <define name='wwn'>
+    <data type='string'>
+      <param name='pattern'>[0-9a-fA-F]{16}</param>
+    </data>
+  </define>
+
 </grammar>
index d70f0c25ef1fd89fd2f94aa28e811ab42de5f674..aafb10c575d713870406259f773b82e18e7cbaf3 100644 (file)
       <optional>
         <ref name="diskBlockIo"/>
       </optional>
+      <optional>
+        <element name="wwn">
+          <ref name="wwn"/>
+        </element>
+      </optional>
     </interleave>
   </define>
   <define name="snapshot">
index 88a4e9ddc2da7f8cbafa0145051fcd1f7588996d..7c8581521631cf7932d23ad2ef20d134c35bcbdf 100644 (file)
     </attribute>
   </define>
 
-  <define name='wwn'>
-    <data type='string'>
-      <param name='pattern'>[0-9a-fA-F]{16}</param>
-    </data>
-  </define>
-
   <define name='capsfchost'>
     <attribute name='type'>
       <value>fc_host</value>