From owner-freebsd-hackers Wed Aug 19 12:31:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA14396 for freebsd-hackers-outgoing; Wed, 19 Aug 1998 12:31:10 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from lohi.clinet.fi (lohi.clinet.fi [194.100.0.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA14380 for ; Wed, 19 Aug 1998 12:30:57 -0700 (PDT) (envelope-from hsu@mail.clinet.fi) Received: from katiska.clinet.fi (katiska.clinet.fi [194.100.0.4]) by lohi.clinet.fi (8.9.1/8.9.0) with ESMTP id WAA16546; Wed, 19 Aug 1998 22:31:15 +0300 (EEST) Received: (from hsu@localhost) by katiska.clinet.fi (8.9.0/8.9.0) id WAA28807; Wed, 19 Aug 1998 22:30:13 +0300 (EEST) To: Peter Jeremy Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: proposal to not change time_t References: <98Aug19.105412est.40322@border.alcanet.com.au.newsgate.clinet.fi> From: Heikki Suonsivu Date: 19 Aug 1998 22:30:13 +0300 In-Reply-To: Peter Jeremy's message of 19 Aug 1998 04:57:57 +0300 Message-ID: Lines: 21 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Jeremy writes: > One solution would be to add a creation time to the superblock (I > think struct fs has still got free space) and then just store offsets > from that creation time in the disk inodes (which are the critical > structure, size-wise). The times in struct stat would be the sum of > the fs_creat time and the relevant times in the disk inode. Whether > struct inode contains a 32-bit or 64-bit seconds counter would depend > on the relative efficiency/convenience of inode <-> dinode mapping > vs inode time updating (and stat()ing). If the unused parts of the > superblock are zero-filled, existing filesystems won't need updating > immediately to be compatible with the changed definition. There are 1000000000 nanoseconds in a second. Thus the nanosecond value has two high bits which are currently always zero, and could be used to flag various things, like "this is a 62bit second value instead of 32bit second+30bit nanosecond value." -- Heikki Suonsivu / Clinet Oy / Tekniikantie 12 / FI-02150 Espoo / FINLAND, hsu@clinet.fi mobile +358-40-5519679 work +358-9-43542270 fax -4555276 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message