mount: adjust log level for get_clean_mnt

In case get_clean_mnt fails open_mountpoint is still able to resolve mounts
by helper process or print error in the worst case. Using pr_warn instead of
pr_perror.

Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko@virtuozzo.com>
This commit is contained in:
Andrey Zhadchenko 2020-07-03 11:31:01 +03:00 committed by Andrei Vagin
parent 8c53627dd8
commit 3fd3a376fd

View file

@ -1111,8 +1111,8 @@ static char *get_clean_mnt(struct mount_info *mi, char *mnt_path_tmp, char *mnt_
}
if (mount(mi->mountpoint, mnt_path, NULL, MS_BIND, NULL)) {
pr_perror("Can't bind-mount %d:%s to %s",
mi->mnt_id, mi->mountpoint, mnt_path);
pr_warn("Can't bind-mount %d:%s to %s: %s\n",
mi->mnt_id, mi->mountpoint, mnt_path, strerror(errno));
rmdir(mnt_path);
return NULL;
}