2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-05 08:45:49 +00:00

mount: Add suport of empty binfmt_misc (v3)

Binfmt is global fs. We could check for its inhabitants intersect on
source and destination, but for the 1st time it's enough just to check
this one being empty.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-08-09 19:47:20 +04:00
committed by Pavel Emelyanov
parent af15b75b70
commit b0d7cc9724
2 changed files with 38 additions and 2 deletions

View File

@@ -78,6 +78,11 @@ done:
fail("Can't mount proc");
return 1;
}
if (mount("none", MPTS_ROOT"/kernel/sys/fs/binfmt_misc",
"binfmt_misc", 0, "") < 0) {
fail("Can't mount proc");
return 1;
}
fd = open(MPTS_ROOT"/kernel/meminfo", O_RDONLY);
if (fd == -1)