[lxc-devel] [PATCH] add more detail in automount error message
Dwight Engen
dwight.engen at oracle.com
Tue Oct 15 17:50:58 UTC 2013
Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
src/lxc/conf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index ecbcf41..457fa26 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -800,10 +800,11 @@ static int lxc_mount_auto_mounts(struct lxc_conf *conf, int flags, struct cgroup
}
r = mount(source, destination, default_mounts[i].fstype, default_mounts[i].flags, default_mounts[i].options);
saved_errno = errno;
+ if (r < 0)
+ SYSERROR("error mounting %s on %s", source, destination);
free(source);
free(destination);
if (r < 0) {
- SYSERROR("error mounting %s", default_mounts[i].destination);
errno = saved_errno;
return -1;
}
--
1.8.3.1
More information about the lxc-devel
mailing list