Commit 74c0e9e2 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

check: skip mnt_id support check for mainstream kernels (v2)

v2: s/tun/mnt_id
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 08960eb1
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "tun.h" #include "tun.h"
#include "namespaces.h" #include "namespaces.h"
#include "pstree.h" #include "pstree.h"
#include "cr_options.h"
static int check_tty(void) static int check_tty(void)
{ {
...@@ -254,6 +255,11 @@ int check_mnt_id(void) ...@@ -254,6 +255,11 @@ int check_mnt_id(void)
struct fdinfo_common fdinfo = { .mnt_id = -1 }; struct fdinfo_common fdinfo = { .mnt_id = -1 };
int ret; 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); ret = parse_fdinfo(get_service_fd(LOG_FD_OFF), FD_TYPES__UND, NULL, &fdinfo);
if (ret < 0) if (ret < 0)
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment