[libvirt] [PATCH] Relax filesystem target type

Guido Günther agx at sigxcpu.org
Sat Mar 21 10:45:03 UTC 2015


When using QEMU's 9pfs the target "dir" element is not necessarily an
absolute path. If it is not validation currently fails with the
misleaading

   $ 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index ebd9299..c6b1a05 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -2010,7 +2010,7 @@
       <interleave>
         <element name="target">
           <attribute name="dir">
-            <ref name="absDirPath"/>
+            <ref name="dirPath"/>
           </attribute>
           <empty/>
         </element>
-- 
2.1.4




More information about the libvir-list mailing list