The Samba-Bugzilla – Bug 11078
mtime changes after fsync(); fclose();
Last modified: 2015-01-27 21:30:17 UTC
Created attachment 10673 [details]
This was originally reported agains emacs: Emacs complained that the file has changed on disk while it really has not: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19607
However, the reproducer (attached) showed that the problem seems to be in the cifs client.
What it does is
The problem is that the second stat returns a slightly different timestamp. Example output:
stat #1: 1422393669.293420542
stat #2: 1422393669.293420500
This causes the editor to detect a change.
$ uname -r