[CRIU] [PATCH 3/5] opt: cpu-cap -- Introduce "none"

Cyrill Gorcunov gorcunov at openvz.org
Mon Sep 8 14:39:38 PDT 2014


Setting capability with inverse is not always convenient
so bring in "none" option.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 crtools.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crtools.c b/crtools.c
index c08b57c1224e..3d52f4a70f35 100644
--- a/crtools.c
+++ b/crtools.c
@@ -111,6 +111,8 @@ static int parse_cpu_cap(struct cr_options *opts, const char *optarg)
 			____cpu_set_cap(opts, CPU_CAP_FPU, inverse);
 		else if (!strncmp(optarg, "all", 3))
 			____cpu_set_cap(opts, CPU_CAP_ALL, inverse);
+		else if (!strncmp(optarg, "none", 4))
+			____cpu_set_cap(opts, CPU_CAP_NONE, inverse);
 		else
 			goto Esyntax;
 	}
-- 
1.9.3



More information about the CRIU mailing list