Commit c414be25 by Dwight Engen Committed by Serge Hallyn

add more detail in automount error message

parent f10e04e3
...@@ -800,10 +800,11 @@ static int lxc_mount_auto_mounts(struct lxc_conf *conf, int flags, struct cgroup ...@@ -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); r = mount(source, destination, default_mounts[i].fstype, default_mounts[i].flags, default_mounts[i].options);
saved_errno = errno; saved_errno = errno;
if (r < 0)
SYSERROR("error mounting %s on %s", source, destination);
free(source); free(source);
free(destination); free(destination);
if (r < 0) { if (r < 0) {
SYSERROR("error mounting %s", default_mounts[i].destination);
errno = saved_errno; errno = saved_errno;
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment