Date: Sat, 19 Nov 2005 01:02:39 +0100 From: Dario Freni <saturnero@freesbie.org> To: hackers@freebsd.org Subject: Re: Date set to epoch when root filesystem is cd9660 Message-ID: <437E6B9F.6030006@freesbie.org> In-Reply-To: <437E64F8.6050402@freesbie.org> References: <437E64F8.6050402@freesbie.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig5CB09D2E9E5AADB7E593E035
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
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@freesbie.org)
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
--------------enig5CB09D2E9E5AADB7E593E035
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFDfmufymi72IiShysRAqjqAKCDX0wlaPnYuoNxku8tUkUaM7yvLACgsgNq
3eZxSiN0gMN7ZRz4qCurXdk=
=tLZ9
-----END PGP SIGNATURE-----
--------------enig5CB09D2E9E5AADB7E593E035--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?437E6B9F.6030006>
