]> git.ipfire.org Git - thirdparty/util-linux.git/commit
uuidd: add cont_clock persistence
authorMichael Trapp <michael.trapp@sap.com>
Wed, 10 Jan 2024 16:29:38 +0000 (17:29 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 12 Jan 2024 09:26:26 +0000 (10:26 +0100)
commit955f0938851931e037db34bdc8a353f6799e877d
treee228ddf8597a9bdf2f35d0e009b66ebede87fb1a
parent489b175c11cee48a4a2ee094075d0ff2a4da0024
uuidd: add cont_clock persistence

cont_clock requires a correct time setup and therefore it
must be possible to detect a step back between uuidd starts.

Reserving the next 10 seconds is sufficient and should not
have a noticeable performance impact. It will also provide
the possibility to start with the clock_reg from the previous
session when the system was rebooted.

Whith that, the early cont_clock initialization in uuidd
should be removed because writing the cont_clock persitence
when -C was not set is useless and might be confusing.
libuuid/src/gen_uuid.c
libuuid/src/uuidP.h
misc-utils/uuidd.c