[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Mon May 25 02:53:30 UTC 2020


The branch, master has been updated
       via  5ac353d8 Prefer zlibx compression consistently instead of having 2 possible default preference orders.
      from  faecd066 Don't auto-foward debug options to the server side anymore.

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 5ac353d84580e64d71a6516b72898b59916007c0
Author: Wayne Davison <wayne at opencoder.net>
Date:   Sun May 24 19:51:11 2020 -0700

    Prefer zlibx compression consistently instead of having 2 possible default preference orders.

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

Summary of changes:
 compat.c |  5 -----
 rsync.yo | 18 ++++++------------
 2 files changed, 6 insertions(+), 17 deletions(-)


Changeset truncated at 500 lines:

diff --git a/compat.c b/compat.c
index f1cc02c7..c555732c 100644
--- a/compat.c
+++ b/compat.c
@@ -89,13 +89,8 @@ int filesfrom_convert = 0;
 
 struct name_num_obj valid_compressions = {
 	"compress", NULL, NULL, 0, 0, {
-#ifndef EXTERNAL_ZLIB
-		{ CPRES_ZLIB, "zlib", NULL },
-#endif
 		{ CPRES_ZLIBX, "zlibx", NULL },
-#ifdef EXTERNAL_ZLIB
 		{ CPRES_ZLIB, "zlib", NULL },
-#endif
 		{ CPRES_NONE, "none", NULL },
 		{ 0, NULL, NULL }
 	}
diff --git a/rsync.yo b/rsync.yo
index 5f615268..2c310039 100644
--- a/rsync.yo
+++ b/rsync.yo
@@ -2069,13 +2069,6 @@ compression comes at a cost of CPU, though, and can be disabled by using the
 bf(-z) option or specifying bf(--compress-choice=zlibx), but it only works if
 both sides of the transfer are at least version 3.1.1.
 
-Note that if your version of rsync was compiled with an external zlib (instead
-of the zlib that comes packaged with rsync) then it will give preference to
-using the "zlibx" algorithm over the "zlib" algorithm since the external zlib
-code doesn't seem to handle the extra compression properly.  You can try
-forcing the regular algorithm via bf(--zz=zlib) and be on the lookout for
-transfer failures.  If all else fails, disable compression altogether.
-
 Note that if you see an error about an option named bf(--old-compress) or
 bf(--new-compress), this is rsync trying to send the bf(--compress-choice=zlib)
 or bf(--compress-choice=zlibx) option in a backward-compatible manner that more
@@ -2089,12 +2082,13 @@ dit(bf(--compress-choice=STR, --zz=STR)) This option can be used to override the
 automatic selection of the compression algorithm that is the default when
 bf(--compress) is used.
 
-Currently the STR can be "zlib", "zlibx", or "none".
+Currently the STR can be "zlibx", "zlib", or "none".
 
-The "zlib" algorithm is given preference over "zlibx" if your rsync was
-compiled with the internal zlib code, otherwise that preference is reversed.
-These 2 algorithms are the stame except that "zlibx" does not try to include
-matched data that was not transferred in the compression computations.
+The "zlibx" algorithm is given preference over "zlib" if both sides of the
+transfer are at least version 3.2.0, otherwise it will choose "zlib" unless you
+override it via something like bf(-zz).  These 2 algorithms are the stame
+except that "zlibx" does not try to include matched data that was not
+transferred in the compression computations.
 
 If "none" is specified, that is equivalent to using bf(--no-compress).
 


-- 
The rsync repository.



More information about the rsync-cvs mailing list