On Fri, Mar 19, 2010 at 11:09:52AM +0000, Sharadha Prabhakar (3P) wrote: > > > -----Original Message----- > From: Daniel P. Berrange [mailto:berrange@xxxxxxxxxx] > Sent: 19 March 2010 10:57 > To: Sharadha Prabhakar (3P) > Cc: libvir-list@xxxxxxxxxx > Subject: Re: [libvirt] virStoragePoolDefParseString() fails with the following pool xml > > On Fri, Mar 19, 2010 at 10:37:15AM +0000, Sharadha Prabhakar (3P) wrote: > > Hi, > > I have the following Pool XML > > > > <pool type='netfs'> > > <name>NFS ISO library</name> > > <uuid>6142b786-378d-9def-bc96-2d0dc0466c13</uuid> > > <capacity>838729728</capacity> > > <allocation>838729728</allocation> > > <available>148315040</available> > > <source> > > <host name='telos'/> > > <dir path='/images/autoinstall'/> > > >That needs to be '<directory.../>' instead of just <dir.../>' > > I only filled the virStoragePoolDefPtr and passed it to virStoragePoolDefFormat(..) which > Returned the XML string that you see now. I've attached the function I used to fill pdef and > The call to virStoragePoolDefFormat at the end of this mail. I'm using libvirt version 0.7.6 Oh, I take that back. Our example XML is wrong ! Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list