[CRIU] [PATCH] autofs: do not treat old kernel as error in autofs_parse()

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Thu Mar 17 07:55:49 PDT 2016


Otherwise dump fails.

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);



More information about the CRIU mailing list