Bug 10069 - File locks do not clear properly when connecting to a CIFS share through a new IP, same physical machine
File locks do not clear properly when connecting to a CIFS share through a ne...
Product: Samba 3.6
Classification: Unclassified
Component: File services
All Windows 7
: P5 normal
: ---
Assigned To: Volker Lendecke
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2013-08-06 18:36 UTC by Joe Mann
Modified: 2013-10-17 10:03 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Joe Mann 2013-08-06 18:36:00 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.
Comment 1 Björn Jacke 2013-10-17 10:03:52 UTC
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.