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

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



On 2012年08月17日 18:41, Martin Kletzander wrote:
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 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


Pushed the series.

Regards,
Osier


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