From: James Peach Date: Thu, 5 Apr 2007 19:49:29 +0000 (+0000) Subject: r22094: Clarify that SMB_VFS_LOCK should not be used to get lock status. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~772 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=395fd99edba8a75eab5d13c9fac5616bcd6ecf2c;p=thirdparty%2Fsamba.git r22094: Clarify that SMB_VFS_LOCK should not be used to get lock status. --- diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c index 98e9aaa2631..6410e7aad5f 100644 --- a/source/modules/vfs_default.c +++ b/source/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);