diff options
author | Jeremy Allison <jra@samba.org> | 2007-01-30 20:49:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:31 -0500 |
commit | 1f3c2b2abca6f1b3b59b73df038832e14106ff76 (patch) | |
tree | 8f77d11654ced27674d25727e8f5a5edcf4e39d5 /source/smbd/blocking.c | |
parent | da4ce69d4057c241cf7b4b6b0dd2bf711dd28a43 (diff) | |
download | samba-1f3c2b2abca6f1b3b59b73df038832e14106ff76.tar.gz |
r21062: Should fix the build plus make all refactored
functions return NTSTATUS.
Jeremy.
Diffstat (limited to 'source/smbd/blocking.c')
-rw-r--r-- | source/smbd/blocking.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/smbd/blocking.c b/source/smbd/blocking.c index 7a71fc67e54..e0478fa762f 100644 --- a/source/smbd/blocking.c +++ b/source/smbd/blocking.c @@ -560,6 +560,23 @@ file %s fnum = %d\n", blr->com_type, fsp->fsp_name, fsp->fnum )); } /**************************************************************************** + Is this mid a blocking lock request on the queue ? +*****************************************************************************/ + +BOOL blocking_lock_was_deferred(int mid) +{ + blocking_lock_record *blr, *next = NULL; + + for(blr = blocking_lock_queue; blr; blr = next) { + next = blr->next; + if(SVAL(blr->inbuf,smb_mid) == mid) { + return True; + } + } + return False; +} + +/**************************************************************************** Set a flag as an unlock request affects one of our pending locks. *****************************************************************************/ |