From 74cfa0fdce0e07838c714a5ac6aab2c09c6eff13 Mon Sep 17 00:00:00 2001 From: James Peach Date: Thu, 5 Apr 2007 19:49:29 +0000 Subject: r22094: Clarify that SMB_VFS_LOCK should not be used to get lock status. (This used to be commit 395fd99edba8a75eab5d13c9fac5616bcd6ecf2c) --- source3/modules/vfs_default.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/modules/vfs_default.c') 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); -- cgit