From owner-freebsd-current@FreeBSD.ORG Mon Jul 16 09:57:33 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 289D416A402; Mon, 16 Jul 2007 09:57:33 +0000 (UTC) (envelope-from snezhko@indorsoft.ru) Received: from indorsoft.ru (indor.net.tomline.ru [213.183.100.90]) by mx1.freebsd.org (Postfix) with ESMTP id 39B2713C442; Mon, 16 Jul 2007 09:57:31 +0000 (UTC) (envelope-from snezhko@indorsoft.ru) Received: from SNEZHKO by indorsoft.ru (MDaemon.PRO.v7.2.2.R) with ESMTP id md50000220658.msg; Mon, 16 Jul 2007 16:57:26 +0700 From: Victor Snezhko To: Ivan Voras References: <20070709214216.GA72912@walton.maths.tcd.ie> <20070711132202.GA95487@walton.maths.tcd.ie> <469B2787.9010302@fer.hr> Date: Mon, 16 Jul 2007 16:57:20 +0700 In-Reply-To: <469B2787.9010302@fer.hr> (Ivan Voras's message of "Mon, 16 Jul 2007 10:08:39 +0200") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Processed: indor.net.tomline.ru, Mon, 16 Jul 2007 16:57:26 +0700 (not processed: spam filter disabled) X-Return-Path: snezhko@indorsoft.ru Cc: David Malone , freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Debugging times X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 09:57:33 -0000 Ivan Voras writes: >> Also, this was a surprise to an unexperienced me, but I have also >> found that vfs_mount initializes RTC with the latest timestamp found >> on local file systems - this explains why kernel "worked" for Ivan on >> a hard drive. It didn't actually work, but used timestamp which was >> stored on filesystem during unmount. > > Wow - this is just astonishing - why would a file system have anything > to do with the RTC? Sorry, some sloppy wording on my part. That was system clock, not RTC. The code which makes sure that system clock is initialized to root fs timestamp is in vfs_mount.c since 1.34. Initially it was commented as "sanity check". That might make some sense, although was a surprise to me. -- WBR, Victor V. Snezhko E-mail: snezhko@indorsoft.ru