[CRIU] [PATCH v2 0/4] Fix "NS_ROOT is not assigned"
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Mar 1 02:13:55 PST 2017
Namespaces are read in read_ns_with_hookups(),
when tasks are not read. So, root_item is NULL,
and NS_ROOT is not set for appropriate namespaces
in rst_add_ns_id(). This is fixed in [2/4].
Also there are fix for assignment of ns_pid (1/4),
and refactorings (3-4/4)
In v2 new macro is used (2/4) and a new patch is added (4/4).
---
Kirill Tkhai (4):
ns: Override fake pid in rst_add_ns_id()
ns: Set NS_ROOT namespaces after tasks are read
ns: Replace task argument rst_add_ns_id() with pid
ns: Use rst_new_ns_id() in read_ns_with_hookups()
criu/include/namespaces.h | 3 ++-
criu/namespaces.c | 48 ++++++++++++++++++++++++++++-----------------
criu/pstree.c | 26 +++++++++++++++++++++---
3 files changed, 54 insertions(+), 23 deletions(-)
--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
More information about the CRIU
mailing list