[libvirt] [PATCH]lxc: add debug logs when dst for mounting does not exist
Chen Hanxiao
chenhanxiao at cn.fujitsu.com
Wed Nov 6 08:37:02 UTC 2013
From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
We automatically create dir when dst for mounting does not exist.
Add debug log for it.
Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
src/lxc/lxc_container.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
index e8f7a75..570dc1d 100644
--- a/src/lxc/lxc_container.c
+++ b/src/lxc/lxc_container.c
@@ -1085,6 +1085,7 @@ static int lxcContainerMountFSBind(virDomainFSDefPtr fs,
src);
goto cleanup;
}
+ VIR_DEBUG("dst '%s' not found, create it in container for mounting", fs->dst);
if (S_ISDIR(st.st_mode)) {
if (virFileMakePath(fs->dst) < 0) {
virReportSystemError(errno,
--
1.8.2.1
More information about the libvir-list
mailing list