Dear List, I checked the function "generate_files", which might be simply stand for generator, but didn't find where triggers the file transfer. As receiver will use "read_ndx_and_attrs" to read iflags to judge if it's need to be transfered? If I'm wrong, please correct me. Can anyone help to point it out? Thanks. -- Daniel Li
I'm new to rsync, just read little of codes right now. I have read the pipe line would be "generator ? sender ? receiver". But I didn't find where rsync makes sure that the file is going to be transfered (time stamp/file checksum). A. Is there anyone familiar with the code, can give me some tips on a) where generator send the time stamp/file checksum b) where sender compared time stamp/file stamp c) where receiver make sure that it's a go mission? I think some function names is enough for me shorten the time and get a basic understanding of the code. Thanks in advance. On Tue, 2009-06-02 at 15:31 +0800, Daniel.Li wrote:> Dear List, > > I checked the function "generate_files", which might be simply stand for > generator, but didn't find where triggers the file transfer. As receiver > will use "read_ndx_and_attrs" to read iflags to judge if it's need to be > transfered? > > If I'm wrong, please correct me. Can anyone help to point it out? > Thanks. > >-- Daniel Li
Wayne Davison
2009-Jun-04 16:09 UTC
Which function in generator trigger the file transfer?
On Tue, Jun 02, 2009 at 03:31:02PM +0800, Daniel.Li wrote:> As receiver will use "read_ndx_and_attrs" to read iflags to judge if > it's need to be transfered?You can get a good overview of how rsync works here: http://rsync.samba.org/how-rsync-works.html After reading through that, you should discover that it's the generator that decides what work gets done. ..wayne..
Possibly Parallel Threads
- DO NOT REPLY [Bug 5701] New: deadlock on local rsyncing, bisected to commit f303b749f2843433c9acd8218a4b9096d0d1bb8d
- --partial does not "unhide" the files
- hang with rsync 3.0.0pre7 doing local copy
- --partial does not "unhide" the files
- Non-clean Rsync 3.0.3 exit on OSX