Project

General

Profile

Bug #13299

File mtime changes twice, when file is modified using SMB server

Added by Florian Manschwetus 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

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


Files

dtraceOutNP++.txt (37 KB) dtraceOutNP++.txt dtrace output showing second close with explicit mtime change Florian Manschwetus, 2020-11-11 03:38 PM
dtraceOutTestProg.txt (26 KB) dtraceOutTestProg.txt dtrace output showing the problem, driven by simpler program Florian Manschwetus, 2020-11-11 03:43 PM

Also available in: Atom PDF