[Samba] File already in use?

Jeremy Allison jra at samba.org
Thu May 27 17:47:25 GMT 2004

On Thu, May 27, 2004 at 01:32:05PM +0200, Andreas Haumer wrote:
> I do not have an explicit test case for this problem.
> It just "happens" sometimes: the user is trying to
> open a file on a simple samba share he (or she) works
> regularily with and for no apparent reason windows pops
> up a dialog telling it "can't open the file because it's
> already opened by some other user or process".
> No need to say that all users say they have _not_
> already opened the file in any way.
> Samba log messages tell me that the file was indeed
> opened and closed several times in less than a second
> when the user is trying to access the file. Eventually
> I then see this "share violation on file" error in the
> logs (see my previous mail).
> I can not link this error message 1:1 to this problem though,
> as I see many more of them in the log file than I have user
> reports about this problem.
> If the user then acknowledges the windows error dialog by
> klicking "OK", the file opens without further problems.
> There is no need to restart Samba or the Windows PC.
> (so it's more an annoyance and in no way a showstopper,
> but it would be nice to have it resolved anyway)

Ok, this behaviour is familiar. I think this may be the 1 second
deferred open behaviour. I know how to fix this, just haven't
coded this up yet as it's tricky. If I do code up a fix would you be willing
to try a test version of Samba 3.0.x ?


More information about the samba mailing list