The smb.conf is meant to guard SMB_VFS_KERNEL_FLOCK(). In source3/smbd/close.c:close_remove_share_mode(), SMB_VFS_KERNEL_FLOCK() is called unconditionally though. On some platforms that don't implement this vfs function, e.g. the gluster-vfs-module setup, this can lead to misbehaviour even if 'kernel share modes = no'. > [2016/05/13 18:57:07.563199, 2] ../source3/smbd/close.c:478(close_remove_share_mode) > close_remove_share_mode: removing kernel flock for file.dd failed: Function not implemented This should be fixed.
Created attachment 12105 [details] patch for master that has been sent to samba-technical master patch
Comment on attachment 12105 [details] patch for master that has been sent to samba-technical different patch posted to s-t after comment by metze
Created attachment 12120 [details] patch for v4-4-test, cherry-picked from master Patch for v4-4-test
Karo, please include in v4-4-test. Thanks!
Pushed to autobuild-v4-4-test.
(In reply to Karolin Seeger from comment #5) Pushed to v4-4-test. Closing out bug report. Thanks!