[CRIU] [PATCH 1/1] add RPC options for for --enable-fs and --skip_mount

Oleg Nesterov oleg at redhat.com
Sat Apr 25 10:07:03 PDT 2015


Subject.

Signed-off-by: Oleg Nesterov <oleg at redhat.com>
---
 cr-service.c       |   10 ++++++++++
 protobuf/rpc.proto |    3 +++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/cr-service.c b/cr-service.c
index ba1d4b2..60a7289 100644
--- a/cr-service.c
+++ b/cr-service.c
@@ -372,6 +372,16 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
 			goto err;
 	}
 
+	for (i = 0; i < req->n_enable_fs; i++) {
+		if (!add_fsname_auto(req->enable_fs[i]))
+			goto err;
+	}
+
+	for (i = 0; i < req->n_skip_mnt; i++) {
+		if (!add_skip_mount(req->skip_mnt[i]))
+			goto err;
+	}
+
 	if (req->has_cpu_cap)
 		opts.cpu_cap = req->cpu_cap;
 
diff --git a/protobuf/rpc.proto b/protobuf/rpc.proto
index 1241b37..c1969c6 100644
--- a/protobuf/rpc.proto
+++ b/protobuf/rpc.proto
@@ -65,6 +65,9 @@ message criu_opts {
 	optional bool			auto_ext_mnt	= 28;
 	optional bool			ext_sharing 	= 29;
 	optional bool			ext_masters	= 30;
+
+	repeated string			skip_mnt	= 31;
+	repeated string			enable_fs	= 32;
 }
 
 message criu_dump_resp {
-- 
1.5.5.1




More information about the CRIU mailing list