Subject: Re: bug#13149: 24.3.50; Emacs thinks file was changed outside Emacs, but it was not

From: Dmitry Gutov <[email-masked]>
Date: Sat, 19 Jan 2013 05:09:36 +0400

On 19.01.2013 4:55, Paul Eggert wrote:
> On 01/18/2013 02:52 PM, Dmitry Gutov wrote:
>> Is is possible that the test is measuring something not directly relevant?
>> Like I mentioned, emacs-24 build seems to work fine on cifs in all observable respects
>
> I suspect the problem is that cifs mishandles fstat
> but works with stat/lstat.  What does the following
> program do for you?

cifs:

1358557459.946082000 fstat
1358557459.946082000 lstat
1358557459.946082000 stat

1358557459.946082000 fstat
1358557459.946082000 lstat
1358557459.946082000 stat

1358557459.946082000 lstat
1358557459.946082000 stat

1358557459.958583600 fstat
1358557459.958583600 lstat
1358557459.958583600 stat

vboxsf:

1358557454.975950900 fstat
1358557454.975950900 lstat
1358557454.975950900 stat

1358557454.975950900 fstat
1358557454.975950900 lstat
1358557454.975950900 stat

1358557454.988952600 lstat
1358557454.988952600 stat

1358557454.988952600 fstat
1358557454.988952600 lstat
1358557454.988952600 stat

So, vboxsf sees the change after the file has been closed, cifs - when 
it's reopened.