Checksum of a file
Wayne Davison
wayned at samba.org
Thu Jan 12 17:52:39 GMT 2006
On Thu, Jan 12, 2006 at 03:29:11PM +0530, Vijay Ram.C wrote:
> As per my project requirement, i need to know the checksum of the
> file being synced.
The sender computes the full-file checksum at the end of the transfer
and sends it to the receiver. This code is in match.c (look for the
sum_end(file_sum) call). The receiver is also computing the checksum
(so that it can compare it to check the transfer), and that code is in
receiver.c (look for the sum_end(file_sum1) call). You can output the
checksum from either spot in the code: use rprint(INFO, ...) if you
want to output the checksum to stdout, for instance.
..wayne..
More information about the rsync
mailing list