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 | 7b75d2c650cc8dfe8c9d5b9e396afce1cedb0645 (patch) | |
tree | fbd6edc9dc938caefee2f6dc04e823b4b69e0563 /source3/include | |
parent | ad1fcb7b15f9ea4208d746073c5a00216290a33b (diff) | |
download | samba-7b75d2c650cc8dfe8c9d5b9e396afce1cedb0645.tar.gz samba-7b75d2c650cc8dfe8c9d5b9e396afce1cedb0645.tar.xz samba-7b75d2c650cc8dfe8c9d5b9e396afce1cedb0645.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.
(This used to be commit dcef65acb5bc08ea4b61ef490a518b7e668ff2ee)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/client.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/client.h b/source3/include/client.h index 30e0fae8744..c6d7b162fcd 100644 --- a/source3/include/client.h +++ b/source3/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; |