Commit 8a3939a2 authored by Tikhomirov Pavel's avatar Tikhomirov Pavel Committed by Pavel Emelyanov

rpc: Add the auto-dedup option

Signed-off-by: 's avatarTikhomirov Pavel <snorcht@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent acf62d7b
...@@ -259,6 +259,9 @@ static int setup_opts_from_req(int sk, CriuOpts *req) ...@@ -259,6 +259,9 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
if (req->has_link_remap) if (req->has_link_remap)
opts.link_remap_ok = req->link_remap; opts.link_remap_ok = req->link_remap;
if (req->has_auto_dedup)
opts.auto_dedup = req->auto_dedup;
if (req->ps) { if (req->ps) {
opts.use_page_server = true; opts.use_page_server = true;
opts.addr = req->ps->address; opts.addr = req->ps->address;
......
...@@ -29,10 +29,11 @@ message criu_opts { ...@@ -29,10 +29,11 @@ message criu_opts {
optional string root = 13; optional string root = 13;
optional string parent_img = 14; optional string parent_img = 14;
optional bool track_mem = 15; optional bool track_mem = 15;
optional bool auto_dedup = 16;
optional int32 work_dir_fd = 16; optional int32 work_dir_fd = 17;
optional bool link_remap = 17; optional bool link_remap = 18;
repeated criu_veth_pair veths = 18; repeated criu_veth_pair veths = 19;
} }
message criu_dump_resp { message criu_dump_resp {
......
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