From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 19 00:02:47 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82AF416A41F for ; Sat, 19 Nov 2005 00:02:47 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05A3643D45 for ; Sat, 19 Nov 2005 00:02:46 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP id 12F6657FD for ; Sat, 19 Nov 2005 01:07:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on cvs.freesbie.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham version=3.1.0 Received: from [192.168.99.16] (host2-169.pool872.interbusiness.it [87.2.169.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP for ; Sat, 19 Nov 2005 01:07:38 +0100 (CET) Message-ID: <437E6B9F.6030006@freesbie.org> Date: Sat, 19 Nov 2005 01:02:39 +0100 From: Dario Freni User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: it, it-it, en-us, en MIME-Version: 1.0 To: hackers@freebsd.org References: <437E64F8.6050402@freesbie.org> In-Reply-To: <437E64F8.6050402@freesbie.org> X-Enigmail-Version: 0.92.0.0 OpenPGP: url=http://www.saturnero.net/saturnero.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5CB09D2E9E5AADB7E593E035" X-Virus-Scanned: ClamAV using ClamSMTP Cc: Subject: Re: Date set to epoch when root filesystem is cd9660 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2005 00:02:47 -0000 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--