s3: VFS: Map process-associated lock operation to open file description lock operation.
authorJeremy Allison <jra@samba.org>
Thu, 12 May 2016 19:17:21 +0000 (21:17 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 20 May 2016 23:28:28 +0000 (01:28 +0200)
commite39436e770b5f6fe9e6615bc70bda627a3a1bd58
tree7d23741a1314bfce806428ae56adbd874989942b
parent598538316786188f2d91c6e2c343c8051e27fd68
s3: VFS: Map process-associated lock operation to open file description lock operation.

Only in the default VFS. Gpfs, Ceph, Gluster and other modern
backend VFS filesystems might want to do the same.

Allow tuneable "smbd:force process locks = true" to turn
off OFD locks if in use and the kernel doesn't support them.

Display debug message showing admins what to do in this case.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Jeff Layton <jlayton@samba.org>
source3/locking/posix.c
source3/modules/vfs_default.c