mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 05:59:00 +00:00
add more detail in automount error message
Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
f10e04e361
commit
c414be2526
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user