From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mingming Subject: Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime Date: Wed, 21 Oct 2009 16:45:56 -0700 Message-ID: <1256168756.6404.16.camel@mingming-laptop> References: <524f69650910191017j7883ed7bvdb0329d1a73f34e4@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> <4ADE2A61.5040505@oracle.com> <524f69650910201437u50838429t8ffbbe737979bc16@mail.gmail.com> <4ADE3066.8020305@oracle.com> <524f69650910201456j58e1e3a5offc6d42902e39c07@mail.gmail.com> <4ADE36AD.6070904@oracle.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Steve French , Andreas Dilger , jim owens , linux-fsdevel , samba-technical To: Sunil Mushran Return-path: Received: from e37.co.us.ibm.com ([32.97.110.158]:41182 "EHLO e37.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbZJUXqH (ORCPT ); Wed, 21 Oct 2009 19:46:07 -0400 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e37.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n9LNj4IP010970 for ; Wed, 21 Oct 2009 17:45:04 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n9LNjxBS172282 for ; Wed, 21 Oct 2009 17:46:01 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n9LNjtpO023099 for ; Wed, 21 Oct 2009 17:45:56 -0600 In-Reply-To: <4ADE36AD.6070904@oracle.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, 2009-10-20 at 15:16 -0700, Sunil Mushran wrote: > Steve French wrote: > > On Tue, Oct 20, 2009 at 4:49 PM, Sunil Mushran wrote: > >> Steve French wrote: > >>> On Tue, Oct 20, 2009 at 4:23 PM, Sunil Mushran > >>> wrote: > >>> > >>>> If you are trying to update it, you can use utimensat(2). > >>>> > >>> Looks like that should work based on what I see in fs/utimes.c ... but > >>> I have heard from two that think it doesn't work, so time to test it > >>> ... (unfortunately > >>> the libc is not new enough on this system ... ugh). > > > > strace shows that touch on my ubuntu system still calls utimesat > > (touch --version displays v6.10 2008). What version of touch are you > > running? > $ touch --version > touch (GNU coreutils) 6.10 > > I am running the same and it calls utimensat(). Time to look at the source. > Just to confirm that I am running the same version of touch too, version 6.10, looks like it calls utimensat() and sets the nanosecond timestamps. Mingming > -- > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html