diff options
author | Jeremy Allison <jra@samba.org> | 2001-05-23 18:47:52 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-05-23 18:47:52 +0000 |
commit | c328dda0fa081e79049d7a9ddac06e80cc8b331b (patch) | |
tree | 11688fe046df67baca15387bf6f96c161ddf1fa2 | |
parent | d3496897f167a8deb1d0034797e8b29f2c51acef (diff) | |
download | samba-c328dda0fa081e79049d7a9ddac06e80cc8b331b.tar.gz samba-c328dda0fa081e79049d7a9ddac06e80cc8b331b.tar.xz samba-c328dda0fa081e79049d7a9ddac06e80cc8b331b.zip |
This is *very* cool. I'm pretty convinced we can just set the
CAP_LARGE_READX|CAP_LARGE_WRITEX bits on negprot and out W2K
performance goes through the roof......
And as we *always* offer 64 buffers we can do this with this
simple change.....
Jeremy.
-rw-r--r-- | source/include/smb.h | 1 | ||||
-rw-r--r-- | source/smbd/negprot.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index 2036076b6b1..616b75dded6 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -1323,6 +1323,7 @@ char *strdup(char *s); #define CAP_NT_FIND 0x0200 #define CAP_DFS 0x1000 #define CAP_LARGE_READX 0x4000 +#define CAP_LARGE_WRITEX 0x8000 #define CAP_EXTENDED_SECURITY 0x80000000 /* protocol types. It assumes that higher protocols include lower protocols diff --git a/source/smbd/negprot.c b/source/smbd/negprot.c index ffc5d5e3980..6c45e376540 100644 --- a/source/smbd/negprot.c +++ b/source/smbd/negprot.c @@ -160,6 +160,7 @@ static int reply_nt1(char *outbuf) /* dual names + lock_and_read + nt SMBs + remote API calls */ int capabilities = CAP_NT_FIND|CAP_LOCK_AND_READ|CAP_LEVEL_II_OPLOCKS| (lp_nt_smb_support() ? CAP_NT_SMBS | CAP_RPC_REMOTE_APIS : 0) | + CAP_LARGE_READX | CAP_LARGE_WRITEX | (SMB_OFF_T_BITS == 64 ? CAP_LARGE_FILES : 0); |