I understand that it's impossible to know how many<br>files will be transferred, but it has field with overall size<br>of files to be synced. And I want to know size of files<br>that are already processed(not transferred, but transferred or skipped).<br>
If I have this information I can provide some kind of progress.<br>It will not be very good progress(since it can go fast or slow),<br>but it can present some indication.<br><br>From: Kevin Korb <<a href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a>><br>
To: <a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a><br>Cc: <br>Date: Tue, 17 Jan 2012 19:53:45 -0500<br>Subject: Re: rsync overall progress patch<br>-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Rsync does not know what files it will need to send until it is<br>
finished (or transferring the last file that it needs to transfer).<br>
Also, when doing delta transfers it has no idea how much of a<br>
particular file it will have to transfer until it is done with that file.<br>
<br>
See the man page section on --recursive for more info.<br>
<br>
On 01/17/12 19:47, Victor Denisov wrote:<br>
> Hi everyone,<br>
><br>
> I'm trying to implement calculation of overall progress for rsync.<br>
> Currently it shows progress only on per file basis.<br>
><br>
> So I need for the feature size of all files to be synced - this is<br>
> obvious and already exists in the code.<br>
><br>
> I can calculate size of transferred files, but I can't find the<br>
> piece of code that is responsible for calculation of checksums. I<br>
> don't understand which part of code compares chunks of files and<br>
> evaluates which of them should be actually transferred.<br>
><br>
> So the question is: where is the source code responsible for<br>
> checksums calculation and chunks transfer?<br>
><br>
> Thanks, Victor.<br>
><br>
>