Date set to epoch when root filesystem is cd9660

Dario Freni saturnero at freesbie.org
Sat Nov 19 00:02:47 GMT 2005


Dario Freni wrote:
> kern/vfs_mount.c:1313:
> 
>              /*
>               * We mount devfs prior to mounting the / FS, so the first
>               * entry will typically be devfs.
>               */
>               mp = TAILQ_FIRST(&mountlist);
>               KASSERT(mp != NULL, ("%s: mountlist is empty", __func__));
>              /*
>               * Iterate over all currently mounted file systems and
>               * the time stamp found to check and/or initialize the RTC.
>               * Typically devfs has no time stamp and the only other FS
>               * is the actual / FS.
>               */
>              do {
>                     if (mp->mnt_time != 0)
>                             inittodr(mp->mnt_time);
>                     mp = TAILQ_NEXT(mp, mnt_list);
>              } while (mp != NULL);

Found when this code was introduced:

=======
Revision 1.186 / (download) - annotate - [select for diffs], Fri Mar 25
01:56:12 2005 UTC (7 months, 3 weeks ago) by marcel
Branch: MAIN

Fix inittodr() invocation. Now that devfs is mounted before the
actual root file system is mounted, the first entry on the mountlist
is not the root file system and the timestamp for that entry is
typically 0. Passing that to inittodr() caused annoying errors on
alpha and ia64.
So, call inittodr() for all file systems on mountlist, but only when
the timestamp (mnt_time) is non-zero.
=======

-- 
Dario Freni (saturnero at freesbie.org)
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20051119/99ae7832/signature.bin


More information about the freebsd-hackers mailing list