]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Make backing store index optional
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Sep 2017 12:00:57 +0000 (14:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Oct 2017 04:19:18 +0000 (06:19 +0200)
Index will remain an internal property even if we allow backing store
parsing from the XML, so we need to allow backing store without it in
the schema.

docs/schemas/domaincommon.rng

index 4dbda6932da84268d7cc1f0f14d0b463c073c419..874af3ffa3f5211948a4b19b0866b8375db8118e 100644 (file)
 
   <define name="diskBackingStore">
     <element name="backingStore">
-      <attribute name="index">
-        <ref name="positiveInteger"/>
-      </attribute>
+      <optional>
+        <attribute name="index">
+          <ref name="positiveInteger"/>
+        </attribute>
+      </optional>
       <interleave>
         <ref name="diskSource"/>
         <ref name="diskBackingChain"/>