[CRIU] [PATCH] check: skip mnt_id support check for mainstream kernels (v2)

Andrey Vagin avagin at openvz.org
Thu Apr 24 21:22:50 PDT 2014


v2: s/tun/mnt_id
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-check.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cr-check.c b/cr-check.c
index 333d593..605c655 100644
--- a/cr-check.c
+++ b/cr-check.c
@@ -30,6 +30,7 @@
 #include "tun.h"
 #include "namespaces.h"
 #include "pstree.h"
+#include "cr_options.h"
 
 static int check_tty(void)
 {
@@ -254,6 +255,11 @@ int check_mnt_id(void)
 	struct fdinfo_common fdinfo = { .mnt_id = -1 };
 	int ret;
 
+	if (opts.check_ms_kernel) {
+		pr_warn("Skipping mnt_id support check\n");
+		return 0;
+	}
+
 	ret = parse_fdinfo(get_service_fd(LOG_FD_OFF), FD_TYPES__UND, NULL, &fdinfo);
 	if (ret < 0)
 		return -1;
-- 
1.8.5.3



More information about the CRIU mailing list