[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [BUG, ½PATCH] domain.rng vs. formatdomain.html#elementsUSB


I just tried to validate the minimal <hostdev>-example from 
<http://libvirt.org/formatdomain.html#elementsUSB>, which failed.

<domain type='xen'>
    <type arch='x86_64' machine='xenpv'>linux</type>
    <hostdev mode='subsystem' type='pci'>
        <address bus='0x06' slot='0x00' function='0x0'/>

This is caused by domain.rng requiring either all three attributes  
("mode", "type", and the undocumented "managed") to be defined or non of 
them; just a subset of them is not allowed because the all reside in the same 

Since I don't know, which of the three attributes must be defined in concert, 
and which is optional, I just post a patch to make all three self-standing.

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index 8b215f3..11a987e 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -1731,12 +1731,16 @@
+      </optional>
+      <optional>
         <attribute name="type">
+      </optional>
+      <optional>
         <attribute name="managed">

Also the "managed" attribute should be documented on that page. Any internal 
documentation (read: code) for that?

Philipp Hahn           Open Source Software Engineer      hahn univention de
Univention GmbH        Linux for Your Business        fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen                   fax: +49 421 22 232-99
** Besuchen Sie uns auf der CeBIT in Hannover **
** Auf dem Univention Stand D36 in Halle 2    **
** Vom 01. bis 05. März 2011                  **

Attachment: signature.asc
Description: This is a digitally signed message part.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]