[libvirt] [test-API][PATCH 3/3] Target path should not with lines in pool xml

Martin Kletzander mkletzan at redhat.com
Fri Aug 17 10:41:22 UTC 2012


On 08/17/2012 12:06 PM, Wayne Sun wrote:
> The xml for define and create pool is with line switch in target
> path.
> 
> For aa.xml:
> <pool type="netfs">
>   <name>netfs_pool</name>
>   <source>
>     <host name="192.168.0.121"/>
>     <dir path="/dir"/>
>     <format type="nfs"/>
>   </source>
>   <target>
>     <path>
>       /tmp/netfs
>     </path>
>   </target>
> </pool>
> 
> virsh pool-create aa.xml
> error: Failed to create pool from aa.xml
> error: cannot open path '
>         /tmp/netfs
>       ': No such file or directory
> 
> Signed-off-by: Wayne Sun <gsun at redhat.com>
> ---
>  repos/storage/xmls/netfs_pool.xml |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
> 
> diff --git a/repos/storage/xmls/netfs_pool.xml b/repos/storage/xmls/netfs_pool.xml
> index 309a652..d8b88c2 100644
> --- a/repos/storage/xmls/netfs_pool.xml
> +++ b/repos/storage/xmls/netfs_pool.xml
> @@ -6,8 +6,6 @@
>      <format type="nfs"/>
>    </source>
>    <target>
> -    <path>
> -      TARGETPATH
> -    </path>
> +    <path>TARGETPATH</path>
>    </target>
>  </pool>
> 

ACK, Martin




More information about the libvir-list mailing list