What causes the constant messages "the file was changed on disk; reload, ignore?"

Jac*_*ijm 3 file-properties editing nas

The issue

While (in this case) editing a .css file in Bluefish, I am switching to the browser to reload the page and test the result. After that, I switch back to the .css file, and get the message that "the (.css) file was edited on disk".

在此处输入图片说明

I am pretty sure it wasn't me, editing the file from another application.
This is constantly happening, if it happens, which is not always. When it starts, it is unstopable.

No Bluefish issue

Since it is not only with Bluefish, but similarly when writing e.g. a bash script in gedit, the "edit", must be real. In the file nothing is actually changed however.

Note

I am editing the files on a NAS, locally linked on my desktop.

Vid*_*uth 7

正如我们在评论中所讨论的,发现文件在 NAS 上,测试文件实际上确实读取了它们并导致它们的访问时间统计发生变化,如您所见:

stat <filename>
Run Code Online (Sandbox Code Playgroud)

由于这是文件本身的一部分,因此它会更改文件校验和并使您的编辑器相信文件已被更改。

  • 解决方案是重新配置 FS,使其不将元数据访问视为写入,或者使用不会在读取时破坏的“stat”参数。 (2认同)