Subject: kern/4834: confused filesystem date
To: None <>
From: Chris Jones <>
List: netbsd-bugs
Date: 01/16/1998 16:53:16
>Number:         4834
>Category:       kern
>Synopsis:       confused filesystem date
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 16 16:50:02 1998
>Originator:     Chris Jones
>Release:        1.2
System: NetBSD 1.2D NetBSD 1.2D (OSCAR) #3: Fri May 2 19:29:21 MDT 1997 i386

In the course of playing with the lfs, I managed to crash my machine.
Upon reboot, I got the following:

WARNING: clock time much less than file system time
WARNING: using file system time

When I check the date, it says:

Dec 28 18:33:57 1965

That's amusing, as the epoch is 1970; overflow, anyone?

Anyway, I reset the time using date, but every time I reboot, the
kernel grabs the time from the filesystem.  I read the problem thusly:

1)  The kernel has insufficient sanity checking when it sets the date.
2)  The time format shouldn't allow overflow, if that's what's really
3)  When I use date to set the correct time, the filesystem time
should be set to the same value; otherwise, I'll have to reset the
date each time I reboot, like in the original DOS.  :(
Happens every time I reboot.  I don't know what I did to mess up the
filesystem time in the first place; I could provide details of what I
did with lfs, but it appeared to be the simple act of making a
directory and listing its contents.