summaryrefslogtreecommitdiff
path: root/token.c
Commit message (Collapse)AuthorAgeFilesLines
* Add new-style compression that skips matching data.Wayne Davison2014-04-191-16/+22
| | | | | | | | | | | | | Adding new-style compression that only compresses the literal data that is sent over the wire and not also matching file data that was not sent. This new-style compression is compatible with external zlib instances, and will eventually become the default (once enough time has passed that all servers support the --new-compress and --old-compress options). NOTE: if you build rsync with an external zlib (i.e. if you specified configure --with-included-zlib=no) you will ONLY get support for the --new-compress option! A client will treat -z as uncompressed (with a warning) and a server will exit with an error (unless -zz was used).
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Add compatibility with an unmodified zlib.Wayne Davison2011-11-211-9/+15
|
* Fix --compress data-duplication bug.Wayne Davison2011-11-211-0/+5
|
* Fix compression-ignoring of upper-case suffixes.Wayne Davison2010-06-191-0/+2
| | | | Fixes bug 7512.
* Don't die if inflate() returns Z_BUF_ERROR in see_deflate_token().Wayne Davison2009-12-211-1/+1
|
* Make some RERR_* choices better, and another noop_io_until_death() tweak.Wayne Davison2009-11-161-2/+2
|
* Improve error handling and get rid of a lingering fprintf().Wayne Davison2009-09-051-6/+5
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Split up the ifuncs.h file into 3 .h files.Wayne Davison2008-09-011-1/+1
|
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Moved inline functions from rsync.h into ifuncs.h.Wayne Davison2007-09-221-0/+1
|
* Make sure that any "dont compress" patterns that have wildcards in aWayne Davison2007-07-141-1/+1
| | | | suffix match stay in the wildcard-matching list.
* - Added support for the new --skip-compress option.Wayne Davison2007-07-141-31/+159
| | | | - Optimized the matching of non-compressing file suffixes.
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* Mention the year 2007 in the copyright declarations.Wayne Davison2007-01-311-1/+1
|
* Got rid of type-casting into isFOO() and toFOO() functions byWayne Davison2006-11-091-2/+2
| | | | using static inline functions that take a signed char pointer.
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-23/+20
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Optimized set_compression() to remove the per-file strdup(), strlower(),Wayne Davison2005-12-301-24/+34
| | | | and free() calls (it now uses iwildmatch()).
* Fixed a bug in set_compression() where the default dont-compressWayne Davison2005-12-301-0/+3
| | | | patterns (e.g. *.gz) would not match a pathname containing a slash.
* Obey new def_compress_level setting.Wayne Davison2005-10-261-2/+3
|
* Fixed a mismatch in the compressed-data handling between how theWayne Davison2005-02-141-10/+16
| | | | sending side and the receiving side handled implicit (unsent) data.
* Changed various token variables from "int"s to "int32"s.Wayne Davison2005-02-141-13/+14
|
* Backed out changes to send_deflated_token() that surrounded theWayne Davison2005-01-021-16/+10
| | | | | | call to deflate(..., Z_INSERT_ONLY) -- the underlying bug was caused by the zlib code not handling Z_INSERT_ONLY in the case where the server has disabled compression.
* In send_deflated_token(), the section that handles "token != -2"Wayne Davison2005-01-021-4/+7
| | | | | now breaks up the calls to deflate() into CHUNK_SIZE chunks, just like the other sections of the code.
* - Use an int32 for the each block-size variable.Wayne Davison2005-01-011-39/+40
| | | | | - Fixed a problem in send_deflated_token() where the data we are compressing might not finish processing in one call.
* My modified version of Chris Shoemaker's improved batch-file handling.Wayne Davison2004-07-151-34/+0
|
* Moved the externs to the top and made a few trivial format tweaks.Wayne Davison2004-06-181-15/+20
|
* Fixed a byte-order problem for batch-file processing on big-endianWayne Davison2004-01-061-4/+5
| | | | systems (reported by Jay Fenlason).
* Merged in the security fixes from 2.5.7.Wayne Davison2003-12-061-4/+4
|
* Fixed an operator-precedence problem in the batch-mode code.Wayne Davison2003-10-131-1/+1
|
* Got rid of some "/* dw */" comments and fixed some line's indentation.Wayne Davison2003-09-111-24/+24
|
* Use the AVAIL_OUT_SIZE() macro in a few more places to ensureWayne Davison2003-08-201-6/+6
| | | | | that the avail_out buffer is big enough to uncompress all the compressed data.
* Call wildmatch(), not fnmatch().Wayne Davison2003-07-301-1/+1
|
* Improved upon my last patch to make it clearer and cleaner.Wayne Davison2003-07-041-8/+16
|
* Fixed a problem where we might not have enough room to compressWayne Davison2003-07-031-2/+8
| | | | unsent tokens into the obuf in a single call.
* DocMartin Pool2002-04-081-2/+2
|
* Merge across rsync+ patch; add a little documentation to the manpage. More ↵Martin Pool2001-08-141-0/+33
| | | | documentation would be better.
* Back out change that treated "refuse options = compress" the same asDavid Dykstra1998-11-251-2/+7
| | | | | | "dont compress = *", by request of Tridge. Instead, mention the difference in the man page. Also, put in a shortcut in set_compression() to recognize "*" earlier instead of going through malloc/strtok/fnmatch/free cycle.
* When "refuse options = compress" is set in rsyncd.conf, silently send filesDavid Dykstra1998-11-241-1/+2
| | | | | at compression level 0 instead of printing an error and exitting. This is the same effect as "dont compress = *".
* added "dont compress" option with the default setting ofAndrew Tridgell1998-11-201-1/+32
| | | | *.gz *.tgz *.zip *.z *.rpm *.deb
* patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to addAndrew Tridgell1998-11-031-8/+8
| | | | different exit codes for different conditions.
* added finddead target, removed dead code and made some functionsAndrew Tridgell1998-09-091-2/+1
| | | | static
* Update to use the new zlib-1.1.2 code.Paul Mackerras1998-05-221-229/+286
| | | | | The compressed token code now handles the null (-2) token from the match logic.
* this fixes two problems:Andrew Tridgell1998-05-221-4/+7
| | | | | | | | | | | 1) handle 64 bit file offsets in the token code. I wonder how large bit files worked up till now? 2) send a null token when we have passed over a large lump of data without finding a token match. This reduces the number of IOs considerably as it removes the need for seeks/reads on the checksum calculation and literal send code. This is not enabled yet for the compressed case as the deflate token code can't handle it yet.
* formatting changes. committed separately so they don't mask the comingAndrew Tridgell1998-05-211-28/+27
| | | | token changes.