summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-20 07:20:38 +0000
committerJeremy Allison <jra@samba.org>2002-03-20 07:20:38 +0000
commitea6099e30c0da1934b1bb7b0e171d80eef72d9bc (patch)
treec3a072ec43237296617a7c49483b90acf96edff1 /source3
parent75722fa183d1678bc7360bc79f9ac8cf17cd62e3 (diff)
downloadsamba-ea6099e30c0da1934b1bb7b0e171d80eef72d9bc.tar.gz
samba-ea6099e30c0da1934b1bb7b0e171d80eef72d9bc.tar.bz2
samba-ea6099e30c0da1934b1bb7b0e171d80eef72d9bc.zip
BUFFER_SIZE Should be 128k if large read write tests are to work.
Jeremy. (This used to be commit 2be9b253ad40e125169725ea79e6723cb40c5e6a)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 62a7198d35..cd15a96be2 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -27,7 +27,12 @@
#ifndef _SMB_H
#define _SMB_H
+#if defined(LARGE_SMB_OFF_T)
+#define BUFFER_SIZE (128*1024)
+#else /* no large readwrite possible */
#define BUFFER_SIZE (0xFFFF)
+#endif
+
#define SAFETY_MARGIN 1024
#define LARGE_WRITEX_HDR_SIZE 65