diff options
author | Jeremy Allison <jra@samba.org> | 2006-04-22 02:33:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:27 -0500 |
commit | dcef65acb5bc08ea4b61ef490a518b7e668ff2ee (patch) | |
tree | ef956a5b1a73c31ff4300aad8dd2e56f914cacf8 /source/include/client.h | |
parent | dcbece8254e5de861d04b691d733616fc25cd585 (diff) | |
download | samba-dcef65acb5bc08ea4b61ef490a518b7e668ff2ee.tar.gz samba-dcef65acb5bc08ea4b61ef490a518b7e668ff2ee.tar.xz samba-dcef65acb5bc08ea4b61ef490a518b7e668ff2ee.zip |
r15162: Patch for bug #3668. Windows has a bug with LARGE_READX
where if you ask for exactly 64k bytes it returns 0.
Jeremy.
Diffstat (limited to 'source/include/client.h')
-rw-r--r-- | source/include/client.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/include/client.h b/source/include/client.h index 30e0fae8744..c6d7b162fcd 100644 --- a/source/include/client.h +++ b/source/include/client.h @@ -27,7 +27,8 @@ overlap on the wire. This size gives us a nice read/write size, which will be a multiple of the page size on almost any system */ #define CLI_BUFFER_SIZE (0xFFFF) -#define CLI_MAX_LARGE_READX_SIZE (127*1024) +#define CLI_SAMBA_MAX_LARGE_READX_SIZE (127*1024) /* Works for Samba servers */ +#define CLI_WINDOWS_MAX_LARGE_READX_SIZE ((64*1024)-2) /* Windows servers are broken.... */ /* * These definitions depend on smb.h @@ -143,6 +144,7 @@ struct cli_state { unsigned int bufsize; int initialised; int win95; + BOOL is_samba; uint32 capabilities; BOOL dfsroot; |