ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime

Sunil Mushran sunil.mushran at oracle.com
Tue Oct 20 15:49:26 MDT 2009


Steve French wrote:
> On Tue, Oct 20, 2009 at 4:23 PM, Sunil Mushran <sunil.mushran at oracle.com> 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



More information about the samba-technical mailing list