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

Andrey Vagin avagin at openvz.org
Fri Nov 13 12:09:45 PST 2015


2015-11-13 22:40 GMT+03:00 Pavel Emelyanov <xemul at parallels.com>:
>
>> @@ -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?

No, it isn't. Thanks again.

>
>>                       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