[CRIU] [PATCH] autofs: do not treat old kernel as error in autofs_parse()
Pavel Emelyanov
xemul at virtuozzo.com
Thu Mar 17 12:20:17 PDT 2016
On 03/17/2016 05:55 PM, Stanislav Kinsburskiy wrote:
> Otherwise dump fails.
I believe it's not enough. If you try to dump autofs on old kernel, would it
properly abort?
> Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
> ---
> criu/autofs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/criu/autofs.c b/criu/autofs.c
> index 1c7c126..606e744 100644
> --- a/criu/autofs.c
> +++ b/criu/autofs.c
> @@ -70,8 +70,8 @@ int autofs_parse(struct mount_info *pm)
> free(opts);
>
> if (pipe_ino == AUTOFS_OPT_UNKNOWN) {
> - pr_err("Failed to find pipe_ino option (old kernel?)\n");
> - return -1;
> + pr_warn("Failed to find pipe_ino option (old kernel?)\n");
> + return 0;
> }
>
> return autofs_gather_pipe(pipe_ino);
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> .
>
More information about the CRIU
mailing list