[CRIU] [PATCH 1/2] rst: Deprecate no ids.img case

Pavel Emelyanov xemul at virtuozzo.com
Tue Mar 29 05:26:43 PDT 2016


We've been writing this file since 0.4, hopefully nobody's
using such an oldie :)

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 criu/pstree.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/criu/pstree.c b/criu/pstree.c
index c3ea274..2eeffe8 100644
--- a/criu/pstree.c
+++ b/criu/pstree.c
@@ -798,11 +798,7 @@ static int prepare_pstree_kobj_ids(void)
 		unsigned long cflags;
 
 		if (!item->ids) {
-			if (item == root_item) {
-				cflags = opts.rst_namespaces_flags;
-				goto set_mask;
-			}
-
+			BUG_ON(item == root_item);
 			continue;
 		}
 
@@ -840,7 +836,6 @@ static int prepare_pstree_kobj_ids(void)
 				return ret;
 		}
 
-set_mask:
 		rsti(item)->clone_flags = cflags;
 		if (parent)
 			/*
-- 
2.5.0



More information about the CRIU mailing list