<div class="gmail_quote">On Fri, Oct 21, 2011 at 7:28 PM, Peter A. Friend <span dir="ltr"><<a href="mailto:pafriend@octavian.org">pafriend@octavian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've read the thesis and the source again, and it looks like rsync is generating a signature on the final partial block. Would someone be able to confirm this, and is rsync handling this as I describe?<br></blockquote>
<div><br></div><div>Search for "remainder" in generator.c and sender.c.  The checksum summary mentions the number of checksums to expect, and the remainder length if the last sum in the sequence is not a full-size block.  The sender makes a note of each sum's length when it is received using a simple heuristic (if this is the last sum, the sum's length is the remainder instead of the block length IIF the remainder is non-zero).  When checksums are compared, a sum can only match if the sum's length is the same as the block we are trying to find.</div>
<div><br></div></div>..wayne..<br>