[CRIU] [PATCH] restore: restore mntns before creating private vma-s (v3)

Pavel Emelyanov xemul at parallels.com
Fri Nov 13 11:40:46 PST 2015


> @@ -2642,6 +2619,9 @@ int restore_task_mnt_ns(struct pstree_item *current)
>  		if (root_item->ids->mnt_ns_id == id)

Is this check still required taking into account the new one below?

>  			return 0;
>  
> +		if (!current->parent && id == current->parent->ids->mnt_ns_id)
> +			return 0;
> +
>  		nsid = lookup_ns_by_id(id, &mnt_ns_desc);
>  		if (nsid == NULL) {
>  			pr_err("Can't find mount namespace %d\n", id);



More information about the CRIU mailing list