[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-216-g47640fb

Jeremy Allison jra at samba.org
Tue Nov 6 22:13:09 GMT 2007


The branch, v3-2-test has been updated
       via  47640fb20e42f226e7ea104076fd52547bfe1abb (commit)
      from  9dd18bb534bca6b5de6cad9580b48681b36c0832 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 47640fb20e42f226e7ea104076fd52547bfe1abb
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Nov 6 14:12:38 2007 -0800

    Ensure we don't use massive writes in pipe mode.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/clireadwrite.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/clireadwrite.c b/source/libsmb/clireadwrite.c
index 0c79da9..d77875b 100644
--- a/source/libsmb/clireadwrite.c
+++ b/source/libsmb/clireadwrite.c
@@ -402,11 +402,12 @@ ssize_t cli_write(struct cli_state *cli,
 		mpx = 1;
 	}
 
-        if (!client_is_signing_on(cli) &&
+        if (write_mode == 0 &&
+			!client_is_signing_on(cli) &&
 			(cli->posix_capabilities & CIFS_UNIX_LARGE_WRITE_CAP) &&
 			(cli->capabilities & CAP_LARGE_FILES)) {
 		/* Only do massive writes if we can do them direct
-		 * with no signing. */
+		 * with no signing - not on a pipe. */
 		writesize = CLI_SAMBA_MAX_POSIX_LARGE_WRITEX_SIZE;
 	} else if (cli->capabilities & CAP_LARGE_READX) {
 		if (cli->is_samba) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list