Commit 4e3d0f7d authored by Stanislav Kinsburskiy's avatar Stanislav Kinsburskiy Committed by Pavel Emelyanov

mount: fix error print in case of failed bind-mount

This is minor issue, but would be nice to have print in sync with actual
action.

travis-ci: success for mount: fix error print in case of failed bind-mount
Signed-off-by: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent c42f6ce2
...@@ -1902,7 +1902,7 @@ static int do_bind_mount(struct mount_info *mi) ...@@ -1902,7 +1902,7 @@ static int do_bind_mount(struct mount_info *mi)
/* Get a copy of mi->bind without child mounts */ /* Get a copy of mi->bind without child mounts */
if (mount(mnt_path, mnt_clean_path, NULL, MS_BIND, NULL)) { if (mount(mnt_path, mnt_clean_path, NULL, MS_BIND, NULL)) {
pr_perror("Unable to bind-mount %s to %s", pr_perror("Unable to bind-mount %s to %s",
mi->bind->mountpoint, mnt_clean_path); mnt_path, mnt_clean_path);
return -1; return -1;
} }
mnt_path = mnt_clean_path; mnt_path = mnt_clean_path;
......
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