[libvirt] virStoragePoolDefParseString() fails with the following pool xml
Daniel P. Berrange
berrange at redhat.com
Fri Mar 19 10:57:03 UTC 2010
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.../>'
> <format type='auto'/>
> </source>
> <target>
> <permissions>
> <mode>00</mode>
> <owner>0</owner>
> <group>0</group>
> </permissions>
> </target>
> </pool>
>
> I'm passing this string to virStoragePoolDefParseString() to get a virStoragePoolDefPtr
> But it returns NULL. Can anyone explain if there's something wrong with the XML format?
FYI, there are example XML files in examples/xml/storage/ too
Regards,
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 :|
More information about the libvir-list
mailing list