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

Pavel Emelyanov xemul at parallels.com
Thu Apr 24 13:44:37 PDT 2014


On 04/25/2014 12:37 AM, Andrey Vagin wrote:
> 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");

tun?

> +		return 0;
> +	}
> +
>  	ret = parse_fdinfo(get_service_fd(LOG_FD_OFF), FD_TYPES__UND, NULL, &fdinfo);
>  	if (ret < 0)
>  		return -1;
> 




More information about the CRIU mailing list