[CRIU] [PATCH] check: skip mnt_id support check for mainstream kernels
Andrey Vagin
avagin at openvz.org
Thu Apr 24 13:37:06 PDT 2014
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..b444100 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 tun 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