]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: Add physical sizing element for storagevol grammar
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 May 2018 21:25:01 +0000 (17:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 25 May 2018 13:32:37 +0000 (09:32 -0400)
https://bugzilla.redhat.com/show_bug.cgi?id=1572491

Commit id '78661cb' added a physical output, but failed to update
the schema resulting in a failure from virt-xml-validate.

While at it - update the storagevolschemadata for the output.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by Michal Privoznik <mprivozn@redhat.com>

docs/schemas/storagevol.rng
tests/storagevolschemadata/qcow2-no-source.xml

index 7450547ffa055596f54a3663a80b2653fa6686c8..96d6b3e6d0c4c7f5156e784dc18d240de8023976 100644 (file)
           <ref name='scaledInteger'/>
         </element>
       </optional>
+      <optional>
+        <element name='physical'>
+          <ref name='scaledInteger'/>
+        </element>
+      </optional>
     </interleave>
   </define>
 
index 777294ec1460fac8b42268cc3fe17ffefc3e368b..49588455946ee388c0a85bbce87a497cb657db37 100644 (file)
@@ -3,6 +3,7 @@
   <key>/var/lib/libvirt/images/OtherDemo.img</key>
   <capacity unit="G">5</capacity>
   <allocation>294912</allocation>
+  <physical unit="G">5</physical>
   <target>
     <path>/var/lib/libvirt/images/OtherDemo.img</path>
     <format type='qcow2'/>