[CRIU] [PATCH 0/3] Fix "NS_ROOT is not assigned"
Kirill Tkhai
ktkhai at virtuozzo.com
Tue Feb 28 05:41:34 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/3].
Also there are fix for assignment of ns_pid (1/3),
and refactoring (3/3).
---
Kirill Tkhai (3):
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
criu/include/namespaces.h | 3 ++-
criu/namespaces.c | 45 ++++++++++++++++++++++++++++++++-------------
criu/pstree.c | 26 ++++++++++++++++++++++----
3 files changed, 56 insertions(+), 18 deletions(-)
--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
More information about the CRIU
mailing list