summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-04-05 19:49:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:10 -0500
commit74cfa0fdce0e07838c714a5ac6aab2c09c6eff13 (patch)
treef35703fcf05bea4ac11a48d6cb6856316f62e38f /source3/modules
parent14ac7712f3fd78ecb5f84b8b8e5e7fd6cb469671 (diff)
downloadsamba-74cfa0fdce0e07838c714a5ac6aab2c09c6eff13.tar.gz
samba-74cfa0fdce0e07838c714a5ac6aab2c09c6eff13.tar.bz2
samba-74cfa0fdce0e07838c714a5ac6aab2c09c6eff13.zip
r22094: Clarify that SMB_VFS_LOCK should not be used to get lock status.
(This used to be commit 395fd99edba8a75eab5d13c9fac5616bcd6ecf2c)
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_default.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 98e9aaa263..6410e7aad5 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -781,6 +781,9 @@ static BOOL vfswrap_lock(vfs_handle_struct *handle, files_struct *fsp, int fd, i
{
BOOL result;
+ /* SMB_VFS_GETLOCK should be used to query lock status. */
+ SMB_ASSERT(op != SMB_F_GETLK);
+
START_PROFILE(syscall_fcntl_lock);
result = fcntl_lock(fd, op, offset, count, type);
END_PROFILE(syscall_fcntl_lock);