http://bugs.winehq.org/show_bug.cgi?id=9142
--- Comment #4 from Andrew Zabolotny anpaza@mail.ru 2008-04-15 02:04:48 --- Nothing has changed since I last reported the issue. Here's another session, where /var/ftp is mounted via Samba (perhaps this is important?) on /mnt/tmp on the same machine:
[2|root@zap|/var/ftp]grep `stat -c "%i" test.txt` /proc/locks 1: LEASE ACTIVE WRITE 4336 08:21:10447 0 EOF [2|root@zap|/var/ftp]wine cmd CMD Version 0.9.58
Z:\mnt\1\ftp>type test.txt Sharing violation
Failed to open 'test.txt' Z:\mnt\1\ftp>type test.txt Hello world! Z:\mnt\1\ftp>^D [2|root@zap|/var/ftp]grep `stat -c "%i" test.txt` /proc/locks [2|root@zap|/var/ftp]
In another window I just did 'tail -f /mnt/tmp/test.txt', where /mnt/tmp is mounted from /var/ftp.
I don't know how Vitaly have set the oplock on the file in hist example above, but I never have seen an FLOCK/MSNFS lock with Samba. I always get just one LEASE/ACTIVE lock. Perhaps this makes a difference.
I currently use wine-0.9.58 and samba-3.0.28a on Fedora 8.