File mtime changes twice, when file is modified using SMB server
When working on files located on smb share served by illumos smb server, editors monitoring for file changes detecting changes, where are no.
Editors like notepad++ or eclipse behave unexpected, also make utils are affected.
The mtime changes after some seconds again, even if the changing program has already terminated.
here a sample from cygwin, demonstrating the behavior:
$ echo test > z:\\testtime2.txt && stat -c "after test program : %y" z:\\testtime2.txt && sleep 20 && stat -c "after additional 20s : %y" z:\\testtime2.txt after test program : 2020-11-09 16:10:08.482197400 +0100 after additional 20s : 2020-11-09 16:10:08.484312500 +0100