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

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Fri Mar 18 04:26:26 PDT 2016



17.03.2016 20:20, Pavel Emelyanov пишет:
> 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?

To be more precise:
Dump will fail with the following message (criu/autofs.c:274):
"Failed to find pipe_ino option (old kernel?)"


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