mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
cr: Obsolete the --namespaces option
It's no longer required to use this option -- two currently supported cases (tasks on host and tasks in containers) can be detected automatically. Keep this option for future. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -229,7 +229,7 @@ int dump_namespaces(struct pid *ns_pid, unsigned int ns_flags)
|
||||
|
||||
pr_info("Dumping %d(%d)'s namespaces\n", ns_pid->virt, ns_pid->real);
|
||||
|
||||
if ((opts.namespaces_flags & CLONE_NEWPID) && ns_pid->virt != 1) {
|
||||
if ((ns_flags & CLONE_NEWPID) && ns_pid->virt != 1) {
|
||||
pr_err("Can't dump a pid namespace without the process init\n");
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user