[CRIU] [PATCH 08/15] opt: cpu-cap -- Introduce "none"

Cyrill Gorcunov gorcunov at openvz.org
Fri Sep 19 07:03:10 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 d98bc7e5aeac..d15b3addd39b 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