Commit 23bdb617 authored by Adrian Reber's avatar Adrian Reber Committed by Andrei Vagin

Remove bogus check in check_features

The check_features RPC function required that both known fields are
present. Without those fields it exited with an error. If RPC users
where not specifying all parameters it would fail. It should, however,
be possible to only check for a subset of options.

Each supported option is checked separately anyway in the forked criu
which does the actual check.

Removing the check also enables RPC clients with older protobuf
definitions to use the feature check.
Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 3706af7b
...@@ -869,13 +869,6 @@ static int handle_feature_check(int sk, CriuReq * msg) ...@@ -869,13 +869,6 @@ static int handle_feature_check(int sk, CriuReq * msg)
feat.has_lazy_pages = 1; feat.has_lazy_pages = 1;
feat.lazy_pages = false; feat.lazy_pages = false;
/* Check if the requested feature check can be answered. */
if ((msg->features->has_mem_track != 1) ||
(msg->features->has_lazy_pages != 1)) {
pr_warn("Feature checking for unknown feature.\n");
goto out;
}
pid = fork(); pid = fork();
if (pid < 0) { if (pid < 0) {
pr_perror("Can't fork"); pr_perror("Can't fork");
......
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