cvs commit: src/sys/kern vfs_mount.c
Marcel Moolenaar
marcel at FreeBSD.org
Sat Nov 19 21:51:46 GMT 2005
marcel 2005-11-19 21:51:45 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_mount.c
Log:
Fix bug introduced in revision 1.186:
When all file systems have a time stamp of zero, which is the case
for example when the root file system is on a read-only medium, we
ended up not calling inittodr() at all. A potential uncleanliness
existed as well. If multiple file systems had a non-zero time stamp,
we would call inittodr() multiple times. While this should not be
harmful, it's definitely not ideal.
Fix both issues by iterating over the mounted file systems to find
the largest time stamp and call inittodr() exactly once with that
time stamp. This could of course be a zero time stamp if none of the
mounted file systems have a non-zero time stamp. In that case the
annoying errors mentioned in the commit log for revision 1.186 still
haven't been avoided. The bottom line is that inittodr() should not
complain when it gets a time base of zero. At the time of this
commit only alpha seems to have that problem.
Reported by: Dario Freni (saturnero at freesbie dot org)
MFC after: 1 week
Revision Changes Path
1.203 +8 -3 src/sys/kern/vfs_mount.c
More information about the cvs-src
mailing list