timesyncd: write structured log messages whenever we bump the clock based on disk...
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jan 2023 19:23:11 +0000 (20:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jan 2023 21:33:04 +0000 (22:33 +0100)
commit29920c5b1f73cc44399d2af23c428461dadb891e
treec54cfc2eb180e9eb316073a838a5e2599dcc5aa0
parent6f30a67a7a9a51212ff639326a67fdfdc9319e61
timesyncd: write structured log messages whenever we bump the clock based on disk timestamp

It's useful being able to easily detect if a disk-based clock bump was
done, let's make it a structure message, the same way as acquiring an
NTP fix already is.

Also, set the clock to 1 µs further than the timestamp from the disk,
after all we know that that timestamp was current when it was written,
hence it can't be the right one right now anymore.
catalog/systemd.catalog.in
src/systemd/sd-messages.h
src/timesync/timesyncd.c