]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Don't validata filesystem target type
authorGuido Günther <agx@sigxcpu.org>
Sat, 21 Mar 2015 10:37:12 +0000 (11:37 +0100)
committerGuido Günther <agx@sigxcpu.org>
Wed, 25 Mar 2015 14:15:17 +0000 (15:15 +0100)
When using QEMU's 9pfs the target "dir" element is not necessarily an
absolute path but merely an arbitrary identifier. So validation in that
case currently fails with the misleading

   $ virt-xml-validate /tmp/test.xml
   Relax-NG validity error : Extra element devices in interleave
   /tmp/test.xml:24: element devices: Relax-NG validity error : Element domain failed to validate content
   /tmp/test.xml fails to validate

docs/schemas/domaincommon.rng

index e66b4679e9ac3f780b3111444e02bfa97d5c576a..03fd54144c82e21571618c960ee8ec1d1fbc0a07 100644 (file)
       </choice>
       <interleave>
         <element name="target">
-          <attribute name="dir">
-            <ref name="absDirPath"/>
-          </attribute>
+          <attribute name="dir"/>
           <empty/>
         </element>
         <optional>