summaryrefslogtreecommitdiffstats
path: root/source/include/smb.h
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
commit2be9b253ad40e125169725ea79e6723cb40c5e6a (patch)
treefda0f8a97361dd6dbc6b5e8a2e602dbb442d1461 /source/include/smb.h
parent098905bea29c7d5b886809d431294ddf2fc1e152 (diff)
downloadsamba-2be9b253ad40e125169725ea79e6723cb40c5e6a.tar.gz
samba-2be9b253ad40e125169725ea79e6723cb40c5e6a.tar.xz
samba-2be9b253ad40e125169725ea79e6723cb40c5e6a.zip
BUFFER_SIZE Should be 128k if large read write tests are to work.
Jeremy.
Diffstat (limited to 'source/include/smb.h')
-rw-r--r--source/include/smb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index 62a7198d356..cd15a96be20 100644
--- a/source/include/smb.h
+++ b/source/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