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 16:16:13 MDT 2009


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.



More information about the samba-technical mailing list