Date: Sat, 19 Nov 2005 00:34:16 +0100 From: Dario Freni <saturnero@freesbie.org> To: hackers@freebsd.org Subject: Date set to epoch when root filesystem is cd9660 Message-ID: <437E64F8.6050402@freesbie.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig67FABC9A70153BACC20A20B6
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
Hi guys,
I encountered this problem during the summer, asked on current@ but
didn't receive response.
When root filesystem is cd9660, the date of the system is set to epoch.
I made some empiric debugging, discovering that the problem strongly
depends on the mountroot setting and not on the different loader used
for cd-boot. Have taken a look at the code and discovered what it seems
to me the responsible of the bug.
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);
Haven't investigate further, but I think that when the root is cd9660,
mp->mnt_time is 0 and inittodr isn't initialised.
Any idea on how to resolve this?
Bye and thanks in advance,
Dario
--
Dario Freni (saturnero@freesbie.org)
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
--------------enig67FABC9A70153BACC20A20B6
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)
iD8DBQFDfmT+ymi72IiShysRAr/7AKC3xhyf0KoOSYG7SApPaUqLtHXwGQCgwcqD
NifsrWsFjjmEfOOpEEzOHFs=
=5hlu
-----END PGP SIGNATURE-----
--------------enig67FABC9A70153BACC20A20B6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?437E64F8.6050402>
