On 02/24/2011 04:46 AM, Philipp Hahn wrote: > 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 > <optional>-section. Good catch. > > 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 @@ > <value>capabilities</value> > </choice> > </attribute> > + </optional> > + <optional> > <attribute name="type"> > <choice> > <value>usb</value> > <value>pci</value> > </choice> > </attribute> > + </optional> > + <optional> > <attribute name="managed"> > <choice> > <value>yes</value> Without reading the code yet, I'm guessing that this is probably correct. And I agree that we should also fix docs/formatdomain.html.in at the same time as this goes in. > > Also the "managed" attribute should be documented on that page. Any internal > documentation (read: code) for that? src/conf/domain_conf.c -- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list