]> git.ipfire.org Git - thirdparty/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)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 15:06:43 +0000 (11:06 -0400)
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

(cherry picked from commit db1edae8951dab99232fba4b33c28f5d412ecb41)

docs/schemas/domaincommon.rng

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