Re: [chrony-dev] [PATCH v2] rtc (linux): Help the user diagnose a problem with RTC UIE ioctl requests |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [PATCH v2] rtc (linux): Help the user diagnose a problem with RTC UIE ioctl requests
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 14 Dec 2020 11:05:28 +0100
- Authentication-results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607940333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=phCxKNT85UDETBGZihVYxbWFeDHrmJTBX+WF281tcaw=; b=b9NurlCWcQmBuuAr7grvrSbfKgnkMxXYguJRRnQyJOfwy87IIc5Iq2ZwOKwB56JuX2Q9jy zDMAX4GK+19mWGFxk0AQIvgSqT0XC5JerVhxCO+co2IZiGLj227oBo/GxQVTeht2dwwdji T/EyQKMFarZQdQjWjQxM8ldedLZ2arU=
On Sat, Dec 12, 2020 at 07:56:00PM -0000, Michael Witten wrote:
> The function switch_interrupts() does indeed currently log an error
> message when an error is detected; however, an error could occur
> when enabling or disabling interrupts, so this updated patch still
> produces a consolidated error message:
>
> "Interrupts not supported by RTC device /path/to/rtc"
You mean switch_interrupts() could succeed on start, but fail later?
How could that happen?
Anyway, I suspect there might be other reasons for the ioctl to fail,
e.g. a seccomp filter in some container, so to me it seems wrong to
interpret that error message in the code, especially without checking
the errno value. I'd just leave it as it is.
>
> A new FAQ entry has been added for that particular error message.
If you described in the FAQ the original error, it would apply to
chrony-4.0 and not just future versions.
> +failure:
> + LOG(LOGS_WARN, "The RTC driver could not be initialised");
> + return 0;
Please move this message to the caller in rtc.c and remove the "The".
Also, please make the commit subject shorter.
Thanks,
--
Miroslav Lichvar
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.