mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
mount: allow to dump and restore nested mount namespaces (v3)
v2: another attempt to write readable code:) v3: clean up 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
3a291e33ff
commit
4067f4bb7e
@@ -182,7 +182,7 @@ static unsigned int generate_ns_id(int pid, unsigned int kid, struct ns_desc *nd
|
||||
BUG_ON(current_ns_mask & nd->cflag);
|
||||
pr_info("Will take %s namespace in the image\n", nd->str);
|
||||
current_ns_mask |= nd->cflag;
|
||||
} else {
|
||||
} else if (nd->cflag & ~CLONE_SUBNS) {
|
||||
pr_err("Can't dump nested %s namespace for %d\n",
|
||||
nd->str, pid);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user