Re: Which function in generator trigger the file transfer?

2009-06-04 Thread Wayne Davison
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..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Which function in generator trigger the file transfer?

2009-06-02 Thread Daniel.Li
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


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Which function in generator trigger the file transfer?

2009-06-02 Thread 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

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html