diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-06-10 14:29:31 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-06-10 14:29:31 +0000 |
commit | 3253085d9883a181c04b9c9ecf7d0ccdfbcee88d (patch) | |
tree | b24b5c191ec68d45bb356efc614531c856a52733 /source/smbd/oplock.c | |
parent | b5ceab810292602ea9a81696c20a781c16b706c2 (diff) | |
download | samba-3253085d9883a181c04b9c9ecf7d0ccdfbcee88d.tar.gz samba-3253085d9883a181c04b9c9ecf7d0ccdfbcee88d.tar.xz samba-3253085d9883a181c04b9c9ecf7d0ccdfbcee88d.zip |
a first pass at Linux kernel oplocks support
Diffstat (limited to 'source/smbd/oplock.c')
-rw-r--r-- | source/smbd/oplock.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/source/smbd/oplock.c b/source/smbd/oplock.c index 33d82f3ddea..44a8e9b0716 100644 --- a/source/smbd/oplock.c +++ b/source/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) && |