summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-31 14:01:35 -0700
committerJeremy Allison <jra@samba.org>2007-10-31 14:01:35 -0700
commit133fad90b5f9cef26f9c78cc5b302358c9c4da6a (patch)
tree62e16ef71d5bb2640a6f0ec87349f2b16145a5a8 /source3/smbd/trans2.c
parentff82c0a037b7c7ce69d87ab70284acc71df5e1a7 (diff)
downloadsamba-133fad90b5f9cef26f9c78cc5b302358c9c4da6a.tar.gz
samba-133fad90b5f9cef26f9c78cc5b302358c9c4da6a.tar.bz2
samba-133fad90b5f9cef26f9c78cc5b302358c9c4da6a.zip
Make explicit draining the socket on RECVFILE. Add
capability for large UNIX write if not signing and recvfile set. Cope with large UNIX write length on incoming processing. Stevef - we can now test 1-16Mb writes from CIFFS. Jeremy. (This used to be commit 8cf78776b0a44bd026cef3d74eb11cfb415f8303)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 7f38d5caa8..d75f6a29fd 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2719,6 +2719,10 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned
*/
case SMB_QUERY_CIFS_UNIX_INFO:
+ {
+ bool large_write = lp_min_receive_file_size() &&
+ !srv_is_signing_active();
+
if (!lp_unix_extensions()) {
reply_nterror(req, NT_STATUS_INVALID_LEVEL);
return;
@@ -2733,8 +2737,11 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned
CIFS_UNIX_FCNTL_LOCKS_CAP|
CIFS_UNIX_EXTATTR_CAP|
CIFS_UNIX_POSIX_PATH_OPERATIONS_CAP|
- CIFS_UNIX_LARGE_READ_CAP)));
+ CIFS_UNIX_LARGE_READ_CAP|
+ large_write ?
+ CIFS_UNIX_LARGE_WRITE_CAP : 0)));
break;
+ }
case SMB_QUERY_POSIX_FS_INFO:
{