From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 18 23:34:33 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 E717116A420 for ; Fri, 18 Nov 2005 23:34:33 +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 7651943D45 for ; Fri, 18 Nov 2005 23:34:28 +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 0923D579A for ; Sat, 19 Nov 2005 00:39:22 +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 00:39:21 +0100 (CET) Message-ID: <437E64F8.6050402@freesbie.org> Date: Sat, 19 Nov 2005 00:34:16 +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 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="------------enig67FABC9A70153BACC20A20B6" X-Virus-Scanned: ClamAV using ClamSMTP Cc: Subject: 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: Fri, 18 Nov 2005 23:34:34 -0000 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--