aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-09-18 12:27:07 +0100
committerDaniel P. Berrange <berrange@redhat.com>2012-09-21 10:43:25 +0100
commit2b9189e8ad727026336b263353d0e6552d4d3c56 (patch)
tree27bcc6018cb0424c1bb3828d906feea1e1443adf
parentEnsure existing selinux mount is removed before mounting new one in LXC (diff)
downloadlibvirt-2b9189e8ad727026336b263353d0e6552d4d3c56.tar.gz
libvirt-2b9189e8ad727026336b263353d0e6552d4d3c56.tar.bz2
libvirt-2b9189e8ad727026336b263353d0e6552d4d3c56.zip
Improve some debugging log messages in LXC mount setup
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--src/lxc/lxc_container.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c
index 8e5e46617..a749d2442 100644
--- a/src/lxc/lxc_container.c
+++ b/src/lxc/lxc_container.c
@@ -556,8 +556,9 @@ static int lxcContainerMountBasicFS(bool pivotRoot,
srcpath, mnts[i].dst, mnts[i].type, mnts[i].mflags, mnts[i].opts);
if (mount(srcpath, mnts[i].dst, mnts[i].type, mnts[i].mflags, mnts[i].opts) < 0) {
virReportSystemError(errno,
- _("Failed to mount %s on %s type %s"),
- mnts[i].src, mnts[i].dst, NULLSTR(mnts[i].type));
+ _("Failed to mount %s on %s type %s flags=%x opts=%s"),
+ srcpath, mnts[i].dst, NULLSTR(mnts[i].type),
+ mnts[i].mflags, NULLSTR(mnts[i].opts));
goto cleanup;
}
}
@@ -579,8 +580,8 @@ static int lxcContainerMountBasicFS(bool pivotRoot,
MS_NOSUID, opts);
if (mount("devfs", "/dev", "tmpfs", MS_NOSUID, opts) < 0) {
virReportSystemError(errno,
- _("Failed to mount %s on %s type %s"),
- "devfs", "/dev", "tmpfs");
+ _("Failed to mount %s on %s type %s (%s)"),
+ "devfs", "/dev", "tmpfs", opts);
goto cleanup;
}
}