]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: domain: Accept VMware disk sources for the disk
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Oct 2020 08:39:57 +0000 (10:39 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 19 Oct 2020 10:03:06 +0000 (12:03 +0200)
Accept the 'datastore' variant of disk source specification used by our
VMware driver.

https://libvirt.org/drvesx.html#datastore

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pino Toscano <ptoscano@redhat.com>
docs/schemas/basictypes.rng
docs/schemas/domaincommon.rng

index b1fb939aff8ccb92b27ad4c37c8a593b1b957f82..ea18b2d2fbd02eac4513d0405a5d723e35322a2f 100644 (file)
     </data>
   </define>
 
+  <define name="vmwarePath">
+    <data type="string">
+      <param name="pattern">\[[^\]]+\] .+</param>
+    </data>
+  </define>
+
   <define name="absDirPath">
     <data type="string">
       <param name="pattern">/.*</param>
index ae25b9b1bcc8d20c34176768a86f1d0d57a00772..50d8aa91556ef6afeac3e7ddf40586458048c95d 100644 (file)
         <interleave>
           <optional>
             <attribute name="file">
-              <ref name="absFilePath"/>
+              <choice>
+                <ref name="absFilePath"/>
+                <ref name="vmwarePath"/>
+              </choice>
             </attribute>
           </optional>
           <ref name="diskSourceCommon"/>