From: Trond Myklebust Subject: Re: i_version changes Date: Wed, 13 Feb 2008 09:07:10 -0500 Message-ID: <1202911630.11904.8.camel@heimdal.trondhjem.org> References: <20080210073041.GA23529@lst.de> <20080212200625.GE18625@fieldses.org> <20080213125214.GA12362@lst.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "J. Bruce Fields" , jean-noel.cordenner@bull.net, linux-fsdevel@vger.kernel.org To: Christoph Hellwig Return-path: Received: from pat.uio.no ([129.240.10.15]:34988 "EHLO pat.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754075AbYBMOHY (ORCPT ); Wed, 13 Feb 2008 09:07:24 -0500 In-Reply-To: <20080213125214.GA12362@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, 2008-02-13 at 13:52 +0100, Christoph Hellwig wrote: > Btw, stupid question: the commit message for the i_version changes > mentions this is to work around lack of granularity for ctime updates. > But all modern filesystems (and I includ ext4 in that here) have 64bit > timestamps already, so that should be enough. It would certainly > avoid all this additional code, and especially the additional space > used in struct inode which can hurt quite a lot. Support for 64-bit on-disk time stamps alone does not suffice. In order to label all file/directory changes unambiguously, you would also need nanosecond timekeeping support. An example is XFS, which has had on-disk support for 64-bit time stamps since forever, but is in practice limited by the Linux default 250Hz internal clock. We've seen plenty of examples of NFS clients missing updates on the resulting filesystem due to the fact that they occurred within 1/250 sec of each other. Cheers Trond