Received: by 10.213.65.68 with SMTP id h4csp193521imn; Thu, 15 Mar 2018 23:19:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELu79QmwnojSNAdcUHG8Pr0yk4XjtpCm2kkOKH3I/aESWsMcl6fTxuCYQid9GEPlbhN3vuVS X-Received: by 10.98.224.65 with SMTP id f62mr568748pfh.191.1521181144483; Thu, 15 Mar 2018 23:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521181144; cv=none; d=google.com; s=arc-20160816; b=Q1/k3t7dZ/anXJmmuhr9IBeDn89hrwbTKTemVa+x/2iYokF0B4FRDZQAQ8a1I+JHpn 86eynjTXewn9DmLnr15wYHI95Cvm/LIz3Fcu5xKPLwpE8PICJ8EdidULuOwz2LF+rz6U j8HjEkyZG+V4AuosFHGldb1SfDmHjiVnblvORrLdeC7cp+79qwjutLFY0UaOnwt9wJFw g2jqr77yS07OHUp/ecbLlbluip8V2aBaldWwVB1wOydWsIDud3G/v0dkXYuSHn4zrOdh +kegbukuVXOYH5v8kn0Nv62hMQkHiKHs5gaZItcDRu4V6pIiDE92Swv0OYEmWf7ANLrM hgtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=yuvysNguhDRTOuiLtRDnes2wIcFP2JYi8BQ7jx0RaFY=; b=pvU+rdSLmKaFme6XROAc9JI8luK7ha2OVfH+zKFX54KPpbTKi0v44v4nrtE5D5u1zg PQAI3lkoBaL75yubm3rDA23ysnMgFdyojKsLzFfBNO2IozFH6eFGv0alLIP7wINU/rIC IQzNEzYDuwDS4E+nKPWjczDMx6ZP/qRCoKjvmwMJ41gxfg3g+49m+vWZDoaVmPcftKw1 AI3yi09ghsT06R3lTwVn1LwW2iINd5D7odMlm+iyyjod/jXvqAtDKQLLd/gCQYiqmekI 2JHqxSojllv9BOzlZylBcTbCPHz/W3DZ7czCXNldZUGSSt2k7UJQptK2I38PLEXIT/S7 DWyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eng.ucsd.edu header.s=google header.b=ctO9XHre; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19si5060607pfk.128.2018.03.15.23.18.49; Thu, 15 Mar 2018 23:19:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@eng.ucsd.edu header.s=google header.b=ctO9XHre; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751269AbeCPGR5 (ORCPT + 99 others); Fri, 16 Mar 2018 02:17:57 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:33676 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750762AbeCPGRz (ORCPT ); Fri, 16 Mar 2018 02:17:55 -0400 Received: by mail-it0-f50.google.com with SMTP id z143-v6so1061689itc.0 for ; Thu, 15 Mar 2018 23:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eng.ucsd.edu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=yuvysNguhDRTOuiLtRDnes2wIcFP2JYi8BQ7jx0RaFY=; b=ctO9XHreBAFgNTsIPb3P2oanG5ZYYUybZL5P3XFhG4P0S+oFxpeGCAQ3umtDsw8wu0 qGJLKz1blPqYNoby2aBHI2R9mIZofP6gmQs99dmkkK6VSDNSYRhcjFsbE7Uuu4SiW3hY U/fBPDNuoAnMN+/N+fvbT+/lnNjFidOA0gGF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=yuvysNguhDRTOuiLtRDnes2wIcFP2JYi8BQ7jx0RaFY=; b=YluVOrMmEE08hSSlABG5HUIsyrFnO4Vr3UF33xl4XvTO2RgIKcNPWuQFEVrMZUCDrh QZkFcB1gW8xTGJ57EOMP5kc34D8ggIY6ZA0jQZhvtzHrXt/VAaVDb2S8axbMTvW7ilJr GWdrKtZ8aei2f72OD5iHJfblcIpKPAg1qq364KXMW8RDRvmlqmJqw+xTS2bYP7UqRJRo atOAP72UfPCku0w89FinToizx9m0PZGWCvmaWB1GiSW9eFL0wtB1xhfqQOVGRtTLzEdI 7a0k49YkUsu0XKTH5YWHb00a1pLYX6wIXHxzpSQ9a4jmBfX7XK4puWLt/H6l9x3jieIQ TyxQ== X-Gm-Message-State: AElRT7FLbxEXDADeWEQcfUKNPQyvmeACAjwNqYHbeUSy5WmDMiXsjMbk mZbGmfC4ZUDuDmCtX2E9g0B5Nk4y9eEa5loISIbtpA== X-Received: by 2002:a24:4744:: with SMTP id t65-v6mr982865itb.88.1521181075048; Thu, 15 Mar 2018 23:17:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.195.72 with HTTP; Thu, 15 Mar 2018 23:17:54 -0700 (PDT) In-Reply-To: <20180316025928.GB2254@thunk.org> References: <1520705944-6723-1-git-send-email-jix024@eng.ucsd.edu> <1520705944-6723-4-git-send-email-jix024@eng.ucsd.edu> <20180315045401.GB4860@magnolia> <20180316025928.GB2254@thunk.org> From: Andiry Xu Date: Thu, 15 Mar 2018 23:17:54 -0700 Message-ID: Subject: Re: [RFC v2 03/83] Add super.h. To: "Theodore Y. Ts'o" , Arnd Bergmann , Andiry Xu , "Darrick J. Wong" , Linux FS Devel , Linux Kernel Mailing List , "linux-nvdimm@lists.01.org" , Dan Williams , "Rudoff, Andy" , coughlan@redhat.com, Steven Swanson , Dave Chinner , Jan Kara , swhiteho@redhat.com, miklos@szeredi.hu, Jian Xu , Andiry Xu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 7:59 PM, Theodore Y. Ts'o wrote: > On Thu, Mar 15, 2018 at 09:38:29PM +0100, Arnd Bergmann wrote: >> >> You could also have a resolution of less than a nanosecond. Note >> that today, the file time stamps generated by the kernel are in >> jiffies resolution, so at best one millisecond. However, most modern >> file systems go with the 64+32 bit timestamps because it's not all >> that expensive. > > It actually depends on the architecture and the accuracy/granularity > of the timekeeping hardware available to the system, but it's possible > for the granularity of file time stamps to be up to one nanosecond. > So you can get results like this: > > % stat unix_io.o > File: unix_io.o > Size: 55000 Blocks: 112 IO Block: 4096 regular file > Device: fc01h/64513d Inode: 19931278 Links: 1 > Access: (0644/-rw-r--r--) Uid: (15806/ tytso) Gid: (15806/ tytso) > Access: 2018-03-15 18:09:21.679914182 -0400 > Modify: 2018-03-15 18:09:21.639914089 -0400 > Change: 2018-03-15 18:09:21.639914089 -0400 > Thanks for all the suggestions. I think I will follow ext4's time format. 2446 should be far away enough. Thanks, Andiry