Re: Debugging times

From: Victor Snezhko <snezhko_at_indorsoft.ru>
Date: Mon, 16 Jul 2007 16:57:20 +0700
Ivan Voras <ivoras_at_fer.hr> writes:

>> Also, this was a surprise to an unexperienced me, but I have also
>> found that vfs_mount initializes RTC with the latest timestamp found
>> on local file systems - this explains why kernel "worked" for Ivan on
>> a hard drive. It didn't actually work, but used timestamp which was
>> stored on filesystem during unmount.
>
> Wow - this is just astonishing - why would a file system have anything
> to do with the RTC?

Sorry, some sloppy wording on my part. That was system clock, not
RTC. The code which makes sure that system clock is initialized to
root fs timestamp is in vfs_mount.c since 1.34. Initially it was
commented as "sanity check". That might make some sense, although was
a surprise to me.

-- 
WBR, Victor V. Snezhko
E-mail: snezhko_at_indorsoft.ru
Received on Mon Jul 16 2007 - 07:57:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC