Improve some debugging log messages in LXC mount setup

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2012-09-18 12:27:07 +01:00
parent c15d893252
commit 2b9189e8ad

View File

@ -556,8 +556,9 @@ static int lxcContainerMountBasicFS(bool pivotRoot,
srcpath, mnts[i].dst, mnts[i].type, mnts[i].mflags, mnts[i].opts); 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) { if (mount(srcpath, mnts[i].dst, mnts[i].type, mnts[i].mflags, mnts[i].opts) < 0) {
virReportSystemError(errno, virReportSystemError(errno,
_("Failed to mount %s on %s type %s"), _("Failed to mount %s on %s type %s flags=%x opts=%s"),
mnts[i].src, mnts[i].dst, NULLSTR(mnts[i].type)); srcpath, mnts[i].dst, NULLSTR(mnts[i].type),
mnts[i].mflags, NULLSTR(mnts[i].opts));
goto cleanup; goto cleanup;
} }
} }
@ -579,8 +580,8 @@ static int lxcContainerMountBasicFS(bool pivotRoot,
MS_NOSUID, opts); MS_NOSUID, opts);
if (mount("devfs", "/dev", "tmpfs", MS_NOSUID, opts) < 0) { if (mount("devfs", "/dev", "tmpfs", MS_NOSUID, opts) < 0) {
virReportSystemError(errno, virReportSystemError(errno,
_("Failed to mount %s on %s type %s"), _("Failed to mount %s on %s type %s (%s)"),
"devfs", "/dev", "tmpfs"); "devfs", "/dev", "tmpfs", opts);
goto cleanup; goto cleanup;
} }
} }