Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934770AbdC3Tfc (ORCPT ); Thu, 30 Mar 2017 15:35:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55486 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934067AbdC3Tfb (ORCPT ); Thu, 30 Mar 2017 15:35:31 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 03AC87F748 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dhowells@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 03AC87F748 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <22214.1490895007@warthog.procyon.org.uk> To: Linus Torvalds Cc: dhowells@redhat.com, Thomas Gleixner , John Stultz , Linux Kernel Mailing List , linux-fsdevel Subject: Re: Apparent backward time travel in timestamps on file creation MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23409.1490902528.1@warthog.procyon.org.uk> Date: Thu, 30 Mar 2017 20:35:28 +0100 Message-ID: <23410.1490902528@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 30 Mar 2017 19:35:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 524 Lines: 14 Linus Torvalds wrote: > The difference can be quite noticeable - basically the > "gettimeofday()" time will interpolate within timer ticks, while > "xtime" is just the truncated "time at timer tick" value _without_ the > correction. Is there any way to determine the error bar, do you know? Or do I just make up a fudge factor? Obviously the filesystem truncation would need to be taken into account (and this can be different for different timestamps within the same filesystem). David