From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrik Nordstrom Subject: Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime Date: Wed, 21 Oct 2009 13:59:52 +0200 Message-ID: <1256126392.493.640.camel@localhost.localdomain> References: <524f69650910191017j7883ed7bvdb0329d1a73f34e4@mail.gmail.com> <524f69650910191245t2eb7ffb2r770a7373ec2ba1e3@mail.gmail.com> <5715838A-4568-4273-B1C1-983B348580B6@sun.com> <524f69650910191524k5c9d766fu430c4f7b17d86952@mail.gmail.com> <890110E9-FA69-4356-9BEB-925F98487C52@sun.com> <4ADDB09D.5000707@hp.com> <6E5D19DA-64C5-4A44-9DF4-BEF2AA8DD8AB@sun.com> <524f69650910201349w20a3145cm6b88cd4029912b6b@mail.gmail.com> <4ADE24C2.20009@oracle.com> <524f69650910201411j3dc4897bic8a042cb17fcede8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Sunil Mushran , jim owens , linux-fsdevel , Andreas Dilger , samba-technical To: Steve French Return-path: Received: from vps1.henriknordstrom.net ([195.20.207.177]:50133 "EHLO vps1.henriknordstrom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbZJUMXw (ORCPT ); Wed, 21 Oct 2009 08:23:52 -0400 In-Reply-To: <524f69650910201411j3dc4897bic8a042cb17fcede8@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: tis 2009-10-20 klockan 16:11 -0500 skrev Steve French: > "The function utime() allows specification of time stamps with a > resolution of 1 second. ... The function utimes() is similar, but the > times argument allows a reso lution of 1 microsecond for the > timestamps. " 1 millisecond is not sufficient But it isn't 1 millisecond, it's granulatity is 1 microsecond (1/1000 millisecond, or 1000 nanoseconds) utime -> second (time_t), same granularity as old stat(), time() and friends. utimes -> microsecond (struct timeval) (1/1000000), same granularity as gettimeofday() and friends. utimen -> nanosecond (struct timespec) (1/1000000000), same granularity as current stat(), clock_gettime() and friends. Regards Henrik