From owner-freebsd-current Wed Feb 5 11:53: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABDE737B401 for ; Wed, 5 Feb 2003 11:52:59 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBE7B43F79 for ; Wed, 5 Feb 2003 11:52:58 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h15JqsYu044034; Wed, 5 Feb 2003 20:52:58 +0100 (CET) (envelope-from phk@freebsd.org) To: "Andrey A. Chernov" Cc: current@freebsd.org Subject: Re: Wrong date for DEVFS entries From: phk@freebsd.org In-Reply-To: Your message of "Wed, 05 Feb 2003 22:45:09 +0300." <20030205194509.GA661@nagual.pp.ru> Date: Wed, 05 Feb 2003 20:52:54 +0100 Message-ID: <44033.1044474774@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030205194509.GA661@nagual.pp.ru>, "Andrey A. Chernov" writes: >Look at the snapshot below, taken right after boot time. Most entries are >at "Feb 5 22:34" which is boot time, but some other are "Feb 6 01:34" >which is in the future! It looks like TZ offset added for them by mistake. >Please fix this bug. My guess: Your RTC has the wrong time and ntpdate or similar stepped your clock to be correct. There is nothing in DEVFS which knows about timezones, but there is code to set the initial time to the estimated boottime. If your system comes up, takes wrong time from RTC, the dev entries will get this wrong time before the system gets a chance to set it right across the network. Originally, the timestamps in DEVFS started out as zero, ie: 19700101000000 (moduls timezone) but people didn't like that and the abovementioned code was introduced. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message