summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2017-03-08 15:07:06 +0100
committerJeremy Allison <jra@samba.org>2017-03-28 17:45:20 +0200
commitdc4bd3f7515bef6f1cd6b51468d1b7642e763d6f (patch)
tree96daa5ec02061902d24589e2725b946a70746e17 /librpc
parent0558715b5b125ffa7948f06451ea979c7045b20c (diff)
downloadsamba-dc4bd3f7515bef6f1cd6b51468d1b7642e763d6f.tar.gz
s3/smbd: move copychunk ioctl limits to IDL
This will be needed in the next commit in vfs_default. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/ioctl.idl4
1 files changed, 4 insertions, 0 deletions
diff --git a/librpc/idl/ioctl.idl b/librpc/idl/ioctl.idl
index eb2dc8a4ea2..f72f9d2507b 100644
--- a/librpc/idl/ioctl.idl
+++ b/librpc/idl/ioctl.idl
@@ -11,6 +11,10 @@ interface copychunk
uint8 context[4];
} req_resume_key_rsp;
+ const uint32 COPYCHUNK_MAX_CHUNKS = 256; /* 2k8r2 & win8 = 256 */
+ const uint32 COPYCHUNK_MAX_CHUNK_LEN = 1048576; /* 2k8r2 & win8 = 1048576 */
+ const uint32 COPYCHUNK_MAX_TOTAL_LEN = 16777216; /* 2k8r2 & win8 = 16777216 */
+
typedef struct {
hyper source_off;
hyper target_off;