Re: [libvirt] virStoragePoolDefParseString() fails with the following pool xml

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

 



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 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]