diff --git a/cr-service.c b/cr-service.c index 22f32cf13..38eb5d977 100644 --- a/cr-service.c +++ b/cr-service.c @@ -259,6 +259,9 @@ static int setup_opts_from_req(int sk, CriuOpts *req) if (req->has_link_remap) opts.link_remap_ok = req->link_remap; + if (req->has_auto_dedup) + opts.auto_dedup = req->auto_dedup; + if (req->ps) { opts.use_page_server = true; opts.addr = req->ps->address; diff --git a/protobuf/rpc.proto b/protobuf/rpc.proto index 6a04b6b89..a185fa2e8 100644 --- a/protobuf/rpc.proto +++ b/protobuf/rpc.proto @@ -29,10 +29,11 @@ message criu_opts { optional string root = 13; optional string parent_img = 14; optional bool track_mem = 15; + optional bool auto_dedup = 16; - optional int32 work_dir_fd = 16; - optional bool link_remap = 17; - repeated criu_veth_pair veths = 18; + optional int32 work_dir_fd = 17; + optional bool link_remap = 18; + repeated criu_veth_pair veths = 19; } message criu_dump_resp {