Displaying 3 results from an estimated 3 matches for "checksum_init".
2003 Mar 22
2
[RFC] protocol version
I'm in the midst of coding a patch set for consideration
that will bump the protocol version and have a couple of
observations.
The current minimum backwards-compatible protocol is 15
but we have code that checks for protocol versions as old as
12. If someone else doesn't beat me to it i'm considering
cleaning out the pre-15 compatibility code. A backwards
compatibility patch could
2002 Aug 05
5
[patch] read-devices
...char *)tmpchunk, buf->m_len);
+ i += CSUM_CHUNK;
+ } while (buf->m_len>0);
+ /* mdfour_update(&m, NULL, 0); uncomment to address http://lists.samba.org/pipermail/rsync/2002-August/008011.html */
mdfour_result(&m, (uchar *)sum);
close(fd);
@@ -118,12 +116,19 @@
void checksum_init(void)
{
- if (remote_version >= 14)
- csum_length = 2; /* adaptive */
- else
- csum_length = SUM_LENGTH;
+ if (remote_version >= 14) {
+ /* adaptively increasing checksum length, relying on multiple phases: */
+ if (read_devices)
+ csum_length = MIN(8,SUM_LENGTH);
+ /* Becaus...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch?
Thanks for the reminder.
I've just committed Jos's rsync+ patch onto the
"branch_mbp_rsyncplus_merge" branch. If it works OK and nobody
screams I will move it across onto the main tree tomorrow or
Wednesday.
I see the patch doesn't add documentation about the new options to the
man page, so we should fix that in the future.