summaryrefslogtreecommitdiff
path: root/source3/smbd/oplock.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-10 14:29:31 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-10 14:29:31 +0000
commit26848a3478ab132cd924f14a66f85f74c2433329 (patch)
tree10ede47ba8cdc78c80ef01dde970f9ab11050a92 /source3/smbd/oplock.c
parent52cb05678a9b08b5aa7dbe13ae6b54ff9ee4ecac (diff)
downloadsamba-26848a3478ab132cd924f14a66f85f74c2433329.tar.gz
samba-26848a3478ab132cd924f14a66f85f74c2433329.tar.bz2
samba-26848a3478ab132cd924f14a66f85f74c2433329.zip
a first pass at Linux kernel oplocks support
(This used to be commit 3253085d9883a181c04b9c9ecf7d0ccdfbcee88d)
Diffstat (limited to 'source3/smbd/oplock.c')
-rw-r--r--source3/smbd/oplock.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index 33d82f3dde..44a8e9b071 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -1021,22 +1021,9 @@ should be %d\n", (int)pid, share_entry->op_port, global_oplock_port));
reply_msg_start = &op_break_reply[OPBRK_CMD_HEADER_LEN];
-#if HAVE_KERNEL_OPLOCKS_IRIX
- if((reply_msg_len != OPLOCK_BREAK_MSG_LEN) && (reply_msg_len != KERNEL_OPLOCK_BREAK_MSG_LEN))
-#else
- if(reply_msg_len != OPLOCK_BREAK_MSG_LEN)
-#endif
- {
- /* Ignore it. */
- DEBUG( 0, ( "request_oplock_break: invalid message length (%d) received.", reply_msg_len ) );
- DEBUGADD( 0, ( " Ignoring.\n" ) );
- continue;
- }
-
/*
* Test to see if this is the reply we are awaiting.
*/
-
if((SVAL(reply_msg_start,OPBRK_MESSAGE_CMD_OFFSET) & CMD_REPLY) &&
((SVAL(reply_msg_start,OPBRK_MESSAGE_CMD_OFFSET) & ~CMD_REPLY) == OPLOCK_BREAK_CMD) &&
(reply_from_port == share_entry->op_port) &&