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

Mingming cmm at us.ibm.com
Wed Oct 21 17:45:56 MDT 2009


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 <sunil.mushran at oracle.com> wrote:
> >> 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).
> >
> > 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 at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html




More information about the samba-technical mailing list