Re: Time estimation from fs at boot on clock-less systems

2021-09-03 Thread Stuart Henderson
On 2021-09-03, Donovan Watteau wrote: > (As for "the problem I'm trying to solve": ERL has no clock, ntpd -s is > gone, but ntpd relies on DNS, and Unbound enables DNSSEC, so this system > is indefinetly stuck between unbound and ntpd errors if I reboot and if > the kernel infers a date that's too

Time estimation from fs at boot on clock-less systems

2021-09-03 Thread Donovan Watteau
Hello, On systems without an internal clock, I'm trying to understand how OpenBSD makes a rough time estimation from the previous file system state, immediately after a reboot. It seems to be related to inittodr(9) in kern_time.c (seems to be MI in 6.9; earlier octeon releases would say "No TOD c