NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/48385 (gmake 4.0 loops on tmpfs)

Synopsis: gmake 4.0 loops on tmpfs

State-Changed-From-To: open->analyzed
State-Changed-When: Sun, 17 Nov 2013 22:32:12 +0000
It is also broken on netbsd-{4,5,6}, so probably been broken ~forever.
Can be reproduced with the following:

mkdir testdir ; echo meow > testdir/whatever
sleep 2
stat -f "%m" testdir ; stat -f "%m" testdir/whatever

tmpfs defers timestamp updates, e.g. the need to update the directory 
mtime is flagged on creat(3).  However, the actual update happens at some
point later, which may lead to directory having newer timestamp than the
created file. 

It is probably worth to audit the whole deferral logic.

Home | Main Index | Thread Index | Old Index