vfs_default: let copy_chunk_send use const from IDL
authorRalph Boehme <slow@samba.org>
Sun, 12 Mar 2017 16:18:39 +0000 (17:18 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 28 Mar 2017 15:45:20 +0000 (17:45 +0200)
commitf8ef3a579b092d1647a38ea184659c2c675e6e83
tree3b4e2a7a887d91770c1a55cbcc9960bed8e67bcf
parentdc4bd3f7515bef6f1cd6b51468d1b7642e763d6f
vfs_default: let copy_chunk_send use const from IDL

This also increases the buffer size from 8 MB to the current value of
COPYCHUNK_MAX_TOTAL_LEN which is 16 MB.

For the typical case when vfswrap_copy_chunk_send is called from the SMB
layer for an copy_chunk ioctl() the parameter "num" is guaranteed to be
at most 1 MB though.

It will only be larger for special callers like vfs_fruit for their
special implementation of copyfile where num will be the size of a file
to copy.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c