1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

r22094: Clarify that SMB_VFS_LOCK should not be used to get lock status.

(This used to be commit 395fd99edba8a75eab5d13c9fac5616bcd6ecf2c)
This commit is contained in:
James Peach 2007-04-05 19:49:29 +00:00 committed by Gerald (Jerry) Carter
parent 14ac7712f3
commit 74cfa0fdce

View File

@ -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);