Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-22 Thread Daniel Veillard
On Thu, May 21, 2009 at 11:05:15AM +0100, Daniel P. Berrange wrote: > On Thu, May 21, 2009 at 10:46:11AM +0200, Daniel Veillard wrote: > > On Thu, May 21, 2009 at 05:25:35PM +0900, Ryota Ozaki wrote: > > > Yes, I also checked that. > > > > > > BTW, is the schema file used by libvirtd or drivers? T

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Ryota Ozaki
On Thu, May 21, 2009 at 11:35 PM, Daniel P. Berrange wrote: > On Thu, May 21, 2009 at 11:29:33PM +0900, Ryota Ozaki wrote: >> Anyway, we need to keep RNG schemas valid though, I've found errors >> in storagevol.rng through trying xmllint... (e.g., the 'volume' element >> does not allow 'type' attr

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Daniel P. Berrange
On Thu, May 21, 2009 at 11:29:33PM +0900, Ryota Ozaki wrote: > Anyway, we need to keep RNG schemas valid though, I've found errors > in storagevol.rng through trying xmllint... (e.g., the 'volume' element > does not allow 'type' attribute.) We have a test case which validates a number of example X

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Ryota Ozaki
On Thu, May 21, 2009 at 7:05 PM, Daniel P. Berrange wrote: > On Thu, May 21, 2009 at 10:46:11AM +0200, Daniel Veillard wrote: >> On Thu, May 21, 2009 at 05:25:35PM +0900, Ryota Ozaki wrote: >> > Yes, I also checked that. >> > >> > BTW, is the schema file used by libvirtd or drivers? This is just i

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Ryota Ozaki
On Thu, May 21, 2009 at 5:46 PM, Daniel Veillard wrote: > On Thu, May 21, 2009 at 05:25:35PM +0900, Ryota Ozaki wrote: >> Yes, I also checked that. >> >> BTW, is the schema file used by libvirtd or drivers? This is just interest. > >  We don't use them in the libvirt code themselves (though it wou

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Daniel P. Berrange
On Thu, May 21, 2009 at 10:46:11AM +0200, Daniel Veillard wrote: > On Thu, May 21, 2009 at 05:25:35PM +0900, Ryota Ozaki wrote: > > Yes, I also checked that. > > > > BTW, is the schema file used by libvirtd or drivers? This is just interest. > > We don't use them in the libvirt code themselves

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Daniel P. Berrange
On Thu, May 21, 2009 at 03:57:28PM +0900, Ryota Ozaki wrote: > Hi, > > I've found a problem that a 'format' element in storage-{pool,vol} XML > doesn't behave as described in the document. > > The document says that a format of {pool,vol} is specified as the value of > a format element, like: >

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Daniel Veillard
On Thu, May 21, 2009 at 05:25:35PM +0900, Ryota Ozaki wrote: > Yes, I also checked that. > > BTW, is the schema file used by libvirtd or drivers? This is just interest. We don't use them in the libvirt code themselves (though it would be relatively trivial to ask libxml2 to validate instances w

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Ryota Ozaki
On Thu, May 21, 2009 at 5:01 PM, Daniel Veillard wrote: > On Thu, May 21, 2009 at 03:57:28PM +0900, Ryota Ozaki wrote: >> Hi, >> >> I've found a problem that a 'format' element in storage-{pool,vol} XML >> doesn't behave as described in the document. >> >> The document says that a format of {pool,

Re: [libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-21 Thread Daniel Veillard
On Thu, May 21, 2009 at 03:57:28PM +0900, Ryota Ozaki wrote: > Hi, > > I've found a problem that a 'format' element in storage-{pool,vol} XML > doesn't behave as described in the document. > > The document says that a format of {pool,vol} is specified as the value of > a format element, like: >

[libvirt] storage: inconsistent in 'format' scheme between document and implementation

2009-05-20 Thread Ryota Ozaki
Hi, I've found a problem that a 'format' element in storage-{pool,vol} XML doesn't behave as described in the document. The document says that a format of {pool,vol} is specified as the value of a format element, like: /var/lib/virt/images/sparse.img qcow2