Re: * RECALL * [PATCH 1/2] hwclock: hctosys drift compensation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/17/2014 05:55 AM, Karel Zak wrote:

>> My initial thought when I read u-l's todo list was that adjtimex [ -c | -a ]
>> depend upon /etc/adjtime *drift* data.  Do we care about breaking that?
> 
> I'm not sure, but I guess adjtimex reads /etc/adjtime to get info
> about UTC/LOCAL only. Well, it seems we need to check adjtimex code.

man 8 adjtimex
       -c[count], --compare[=count]
              ...  CMOS clock readings are adjusted
              for systematic drift using using the correction in /etc/adjtime
              -- see hwclock(8)...

> Note that we have hwclock --compare to provide adjtimex -c functionality 
> with in hwclock.

I have not had a chance to examine it closely yet, but it appears to be quite 
rudimentary at this point when compared to adjtimex -c.  I'm not sure I understand
the purpose of trying to build adjtimex into hwclock anyway.  Why not just use
adjtimex to do adjtimex things? 
 
>> I have often thought that hwclock should have a separate 'configuration' file,
>> for example, to allow specific init behavior customization without requiring
>> system admins to modify the init scripts.
> 
> The old RHEL/Fedora has /etc/sysconfig/hwclock where is possible
> to specify hwclock command line, so no one is forced to modify init
> scripts. All you need is to read the file from your init scripts.

But that is distro specific. Rather than having everyone baking their own
solution it seems more practical for hwclock to have its own config file.
This todo item seems like a good opportunity to do so.

> (but yes, we (upstream) still support the original hwclock(8) use-cases
>  and non-systemd installations)

I'm glad you included this comment.  I wouldn't wasting my time trying to
improve hwclock otherwise. I have no interest in dragging the systemd war
into this conversation, but my distro of choice is pushing back against it.

Also with IoT putting Linux into everything from automobiles to light bulbs,
and some of them interested in keeping good date-time, I think hwclock's init 
capabilities could remain relevant for some time to come. Linux is about more
then just distros, yes?

Will


--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux