vfs: kernel_flock and named streams
commitd748652e5b1c1c0238a2b86cdf14d7f6de7ce9b2
authorRalph Boehme <slow@samba.org>
Wed, 29 Apr 2015 14:53:04 +0000 (29 16:53 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 29 Apr 2015 21:42:20 +0000 (29 23:42 +0200)
tree4f3ef6aa38c07024276d7dbb5bb93d808e06eb6b
parent57303c30b24630f54dc15455ee6c1d20de04ab4f
vfs: kernel_flock and named streams

Streams implementing VFS modules may implement streams in a way that the
fsp will have the basefile open in the fsp fd, so lacking a distinct fd
for the stream, kernel_flock will apply on the basefile which is
wrong. The actual check is deffered to the VFS module implementing the
kernel_flock call.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11243

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_gpfs.c
source3/smbd/open.c