mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 16:25:31 +00:00
mount: don't mark mounts as private twice
We do the same action twice. It's typo. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
377205c147
commit
41aa981dde
5
mount.c
5
mount.c
@@ -1496,11 +1496,6 @@ static int cr_pivot_root(char *root)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mount("none", put_root, "none", MS_REC|MS_PRIVATE, NULL)) {
|
|
||||||
pr_perror("Can't remount root with MS_PRIVATE");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (umount2(put_root, MNT_DETACH)) {
|
if (umount2(put_root, MNT_DETACH)) {
|
||||||
pr_perror("Can't umount %s", put_root);
|
pr_perror("Can't umount %s", put_root);
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user