Samba 2.2.x with small mod manages to survive three rounds in
the ring with NetBench 7.0.3 and two engines on one client
Richard Sharpe
rsharpe at richardsharpe.com
Sat Apr 19 00:42:37 GMT 2003
On Fri, 18 Apr 2003 jra at dp.samba.org wrote:
> Patch please ? :-). Well done btw.
OK, here is the patch.
What I don't understand is the function of the 0x10 bit in the flags field
of an NTCreate&X. Win2K servers do not seem to add the 0x8000 bit when an
oplock is granted, and I have seen the Action field (smb_action below) in
the response take values of 0xaa, 0xac, 0xae, as well as 0x01, 0x02.
So, while this seems to fix the problem I was seeing, it needs to be
explained.
diff -u ../depot-trunk/src/samba/source/smbd/nttrans.c
src/samba/source/smbd/nttrans.c
--- ../depot-trunk/src/samba/source/smbd/nttrans.c Fri Apr 18
15:12:24 2003+++ src/samba/source/smbd/nttrans.c Fri Apr 18
13:34:31 2003
@@ -913,12 +913,12 @@
* correct bit for extended oplock reply.
*/
- if (oplock_request && lp_fake_oplocks(SNUM(conn)))
+/* if (oplock_request && lp_fake_oplocks(SNUM(conn)))
smb_action |= EXTENDED_OPLOCK_GRANTED;
if(oplock_request && EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type))
smb_action |= EXTENDED_OPLOCK_GRANTED;
-
+*/
#if 1 /* JRATEST */
/* W2K sends back 42 words here ! */
set_message(outbuf,42,0,True);
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list