mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +00:00
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:
parent
8c53627dd8
commit
3fd3a376fd
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue