[Samba] Lock release on client failure

Billy Newport bnewport at us.ibm.com
Wed Dec 15 13:32:48 GMT 2004

When and how does Samba discover that the client has failed so that locks
that the client held as released.

I'm using samba for critical data so oplocks are off. My client gets an
exclusive lock on the file. If the client process dies then the OS cleans
up the socket and the lock is released. When there is a power failure or
network unplug event, how does samba determine that the lock held by that
client should be released given the socket may not be closed for the
KEEP_ALIVE interval?

How would I tune Samba to release the lock in a guaranteed maximum amount
of time similar to the lease expiration on nfs v4.


More information about the samba mailing list