Wayne Davison
01f439ec6e
Fixed a mismatch in the compressed-data handling between how the
...
sending side and the receiving side handled implicit (unsent) data.
2005-02-14 08:28:00 +00:00
Wayne Davison
acc461c7da
Changed various token variables from "int"s to "int32"s.
2005-02-14 08:19:32 +00:00
Wayne Davison
80a25bb880
Backed out changes to send_deflated_token() that surrounded the
...
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.
2005-01-02 09:08:59 +00:00
Wayne Davison
5b7bcac260
In send_deflated_token(), the section that handles "token != -2"
...
now breaks up the calls to deflate() into CHUNK_SIZE chunks, just
like the other sections of the code.
2005-01-02 00:55:55 +00:00
Wayne Davison
7fcbf9e43e
- Use an int32 for the each block-size variable.
...
- Fixed a problem in send_deflated_token() where the data we are
compressing might not finish processing in one call.
2005-01-01 21:08:20 +00:00
Wayne Davison
b9f592fbf5
My modified version of Chris Shoemaker's improved batch-file handling.
2004-07-15 02:20:08 +00:00
Wayne Davison
d67c8bdfc3
Moved the externs to the top and made a few trivial format tweaks.
2004-06-18 16:22:14 +00:00
Wayne Davison
4a1991d7c5
Fixed a byte-order problem for batch-file processing on big-endian
...
systems (reported by Jay Fenlason).
2004-01-06 05:33:02 +00:00
Wayne Davison
58cadc8608
Merged in the security fixes from 2.5.7.
2003-12-06 21:07:27 +00:00
Wayne Davison
2a88a8cd30
Fixed an operator-precedence problem in the batch-mode code.
2003-10-13 23:46:08 +00:00
Wayne Davison
857e38bb45
Got rid of some "/* dw */" comments and fixed some line's indentation.
2003-09-11 04:48:09 +00:00
Wayne Davison
1dbb94cadf
Use the AVAIL_OUT_SIZE() macro in a few more places to ensure
...
that the avail_out buffer is big enough to uncompress all the
compressed data.
2003-08-20 10:37:53 +00:00
Wayne Davison
fe332038c6
Call wildmatch(), not fnmatch().
2003-07-30 06:12:27 +00:00
Wayne Davison
2473391971
Improved upon my last patch to make it clearer and cleaner.
2003-07-04 07:47:09 +00:00
Wayne Davison
92b8abfe80
Fixed a problem where we might not have enough room to compress
...
unsent tokens into the obuf in a single call.
2003-07-03 17:38:12 +00:00
Martin Pool
79f671cc7c
Doc
2002-04-08 08:35:30 +00:00
Martin Pool
6902ed178b
Merge across rsync+ patch; add a little documentation to the manpage. More documentation would be better.
2001-08-14 02:04:47 +00:00
David Dykstra
63f0774f75
Back out change that treated "refuse options = compress" the same as
...
"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.
1998-11-25 15:37:50 +00:00
David Dykstra
d47741cac6
When "refuse options = compress" is set in rsyncd.conf, silently send files
...
at compression level 0 instead of printing an error and exitting. This is
the same effect as "dont compress = *".
1998-11-24 22:03:16 +00:00
Andrew Tridgell
83fff1aa60
added "dont compress" option with the default setting of
...
*.gz *.tgz *.zip *.z *.rpm *.deb
1998-11-20 22:26:29 +00:00
Andrew Tridgell
654175798b
patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to add
...
different exit codes for different conditions.
1998-11-03 07:08:27 +00:00
Andrew Tridgell
6e4fb64e61
added finddead target, removed dead code and made some functions
...
static
1998-09-09 05:57:34 +00:00
Paul Mackerras
5914bf15d2
Update to use the new zlib-1.1.2 code.
...
The compressed token code now handles the null (-2)
token from the match logic.
1998-05-22 06:58:52 +00:00
Andrew Tridgell
45f133b976
this fixes two problems:
...
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.
1998-05-22 01:53:02 +00:00
Andrew Tridgell
c5eb365011
formatting changes. committed separately so they don't mask the coming
...
token changes.
1998-05-21 05:57:15 +00:00
Andrew Tridgell
9486289ce4
some large systematic changes to make socket conversion easier. The
...
biggest one is the use of rprintf() instead of fprintf()
1998-05-07 14:50:22 +00:00
Andrew Tridgell
3a6a366fc5
finished 64 bit file offset support. Hopefully rsync can now transfer
...
files up to 2^64 bytes in size. Now I just need to find enough disk
space to test this :-)
The 64 bit offset code only works if off_t is 64 bits (or bigger!) on
both ends of the link. If one end tries to send a file greater than
2^31 in size and the other end doesn't support it then rsync will
abort.
This commit also cleans up some static declarations so they are in a
unitinitialised segment to save load time.
1998-03-23 12:52:57 +00:00
rsync-bugs
1634f4c459
casting cleanups (rsync now compiles cleanly under IRIX 6.4)
1997-12-15 21:41:33 +00:00
Paul Mackerras
b8d4524b4f
Fixed bug in receiving 32kB compressible files
1996-11-06 04:49:53 +00:00
Paul Mackerras
f80621049e
Fix compression bug where incompressible files weren't transmitted correctly.
1996-10-02 04:20:22 +00:00
Paul Mackerras
280cbb8537
This should fix the bug where file transfer with compression failed with
...
the message 'inflate returned 0 (0 bytes)'.
1996-07-15 05:38:20 +00:00
Paul Mackerras
5be59dc5b2
fix buglet in handling multiple files
1996-07-03 05:28:55 +00:00
Andrew Tridgell
ef21f8dbff
*** empty log message ***
1996-07-03 05:22:09 +00:00
Paul Mackerras
861c20b43d
Added in-stream deflate compression for file reconstruction instructions.
1996-07-03 04:05:46 +00:00
Andrew Tridgell
9e31c4824c
added resend logic
...
added checksum on all files
1996-07-02 03:19:58 +00:00
Andrew Tridgell
c6e7fcb42b
*** empty log message ***
1996-07-01 23:27:19 +00:00
Andrew Tridgell
70d794dce9
added hooks for compression in token.c
1996-07-01 05:55:05 +00:00