From 8a3939a2778cfda61a3e22a325f99a14ce3fe3e4 Mon Sep 17 00:00:00 2001 From: Tikhomirov Pavel Date: Fri, 21 Feb 2014 18:42:00 +0400 Subject: [PATCH] rpc: Add the auto-dedup option Signed-off-by: Tikhomirov Pavel Signed-off-by: Pavel Emelyanov --- cr-service.c | 3 +++ protobuf/rpc.proto | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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 {