On Mon, Sep 15, 2014 at 10:03:56AM -0400, JWP wrote: > So, also on my hwclock todo list is drift correcting --show. > I believe that doing them together will yield a more eloquent > patch, and streamline the code in general. Therefore, please > disregard this patch for the time being. I apologize for > submitting it prematurely. OK, the idea to read adjtime file when we apply HW clock to sys time makes sense. > Of course, comments on the concepts or the code are welcome. Something else: See Documentation/TODO, the writable /etc/adjtime sucks, because in many cases we want to keep /etc read-only. I see two possible ways: 1. move the file to /var/lib/hwclock/adjtime This is already possible by "./configure ADJTIME_PATH=/var/lib/hwclock/adjtime" (used for example by Linux-from-scratch project). -- the problem is that the file (specially last UTC/LOCAL line) may be expected by another tools 2. create another independent /var/lib/hwclock/drift file with info about HW clock drift numbers and keep only zeros and and UTC/LOCAL setting in /etc/adjtime. This could be implemented backwardly compatible, if there is no /var/lib/hwclock then always use /etc/adjtime for drift numbers. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- 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