From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sunil Mushran Subject: Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime Date: Tue, 20 Oct 2009 14:49:26 -0700 Message-ID: <4ADE3066.8020305@oracle.com> References: <524f69650910191017j7883ed7bvdb0329d1a73f34e4@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> <4ADE2A61.5040505@oracle.com> <524f69650910201437u50838429t8ffbbe737979bc16@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andreas Dilger , jim owens , linux-fsdevel , samba-technical To: Steve French Return-path: Received: from acsinet12.oracle.com ([141.146.126.234]:63476 "EHLO acsinet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752012AbZJTVt6 (ORCPT ); Tue, 20 Oct 2009 17:49:58 -0400 In-Reply-To: <524f69650910201437u50838429t8ffbbe737979bc16@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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). > I just ran the following on my box. (2.6.28-15-generic #52-Ubuntu SMP) This is on ocfs2. $ stat DSCN1417.jpg File: `DSCN1417.jpg' Size: 60991 Blocks: 120 IO Block: 4096 regular file Device: 807h/2055d Inode: 9031712 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( xxxxx/xxxxxxx) Gid: ( xxxx/xxxxxxx) Access: 2009-09-10 10:49:08.508507794 -0700 Modify: 2006-07-05 18:27:05.000000000 -0700 Change: 2007-05-29 15:23:16.000058283 -0700 $ touch DSCN1417.jpg $ stat DSCN1417.jpg File: `DSCN1417.jpg' Size: 60991 Blocks: 120 IO Block: 4096 regular file Device: 807h/2055d Inode: 9031712 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( xxxx/xxxxxxx) Gid: ( xxxx/xxxxxx) Access: 2009-10-20 14:41:51.224405489 -0700 Modify: 2009-10-20 14:41:51.224405489 -0700 Change: 2009-10-20 14:41:51.224405489 -0700