[Samba] smb locks

Rajesh Ghanekar rajeshsg at gmail.com
Tue Jun 19 04:20:07 MDT 2012


Hi,
   I see samba with ctdb locking has following mapping when
kernel oplocks = yes.

   share mode reservations = flock(2)
   posix byte range locking = fcntl(2)
   SMB locks (mandatory) = ctdb using brlock.tdb
   oplocks = fcntl(2) using F_SETLEASE

  Am I correct or I am missing something? I hope only SMB range
locks are implemented with tdb, all else are being used from filesystem.
What happens if flock or fcntl returns -ENOTSUPP, will samba start
using other tdb files (locking.tdb) for that or will it say "not supported"
to CIFS client?

Thanks,
Rajesh


More information about the samba mailing list