The Samba-Bugzilla – Bug 10069
File locks do not clear properly when connecting to a CIFS share through a new IP, same physical machine
Last modified: 2013-10-17 10:03:52 UTC
If a user is connected to a CIFS share from a Windows machine and has a file locked (a Word document for example) and they disconnect from the network and reconnect with a new IP, the file remains locked.
A good example of this is if someone is editing a document on a laptop and switches from a wired network to wireless. They will be given a new IP and the file will stay locked from the old connection.
I am aware of the config option "reset on zero vc = yes", but this only works if they reconnect with the same IP. It would be nice if there was a way to reset the connection if they reconnect with the same machine, regardless of IP.
the reset on zero vc is working as intended. Did you test your setup with a windows 2003 server also? I guess you will see the same issue there. With recent Samba 4/4.1 and recent Windows clients you might have more luck with durable handles.