]> git.ipfire.org Git - thirdparty/chrony.git/commit
sources: improve handling of dump files and their format
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 3 Feb 2021 16:13:39 +0000 (17:13 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 4 Feb 2021 16:44:27 +0000 (17:44 +0100)
commitf8610d69f08fa63d7ef18c6728774fa98599f227
tree0374c0ffaf7ca915fea06085b961100d3f675eb3
parent1a8dcce84fe5a7983d053a5285e4368096a7e5c2
sources: improve handling of dump files and their format

Check for write errors when saving dump files. Don't save files with no
samples. Add more sanity checks for loaded data.

Extend the file format to include an identifier, the reachability
register, leap status, name, and authentication flag. Avoid loading
unauthenticated data after switching authentication on. Change format
and order of some fields to simplify parsing. Drop fields that were kept
only for compatibility.

The dump files now contain all information needed to perform the source
selection and update the reference.

There is no support kept for the old file format. Loading of old dump
files will fail after upgrading to new version.
sources.c
sourcestats.c
sourcestats.h