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(a)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>
--
1.7.1