Commit 75a9c3b6 authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Deprecate no ids.img case

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

v2: Don't BUG_ON, but return error, as this can be triggered
by corrupting images.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 0cdd2a29
...@@ -696,8 +696,9 @@ static int prepare_pstree_kobj_ids(void) ...@@ -696,8 +696,9 @@ static int prepare_pstree_kobj_ids(void)
if (!item->ids) { if (!item->ids) {
if (item == root_item) { if (item == root_item) {
cflags = opts.rst_namespaces_flags; pr_err("No IDS for root task.\n");
goto set_mask; pr_err("Images currupted or too old criu was used for dump.\n");
return -1;
} }
continue; continue;
...@@ -737,7 +738,6 @@ static int prepare_pstree_kobj_ids(void) ...@@ -737,7 +738,6 @@ static int prepare_pstree_kobj_ids(void)
return ret; return ret;
} }
set_mask:
rsti(item)->clone_flags = cflags; rsti(item)->clone_flags = cflags;
if (parent) if (parent)
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment