aboutsummaryrefslogtreecommitdiffstats
path: root/sender.c
Commit message (Collapse)AuthorAgeFilesLines
* Added a flag to disable xattr hlink optimization.Wayne Davison2014-06-081-2/+5
| | | | | | | | I added a compatibility flag for protocol 31 that will let both sides know if they should be using the xattr optimization that attempted to avoid sending xattr info for hardlinked files. Since this optimization was causing some issues, this compatibility flag will ensure that both sides know if they should be trying to use the optimization or not.
* I missed this tweak in the undo of a prior xattr optimization.Wayne Davison2014-06-081-2/+1
|
* Exit with a partial-transfer error for a sender-remove failure.Wayne Davison2014-05-251-2/+2
|
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Undo the hard-link xattr optimization in 78286a03.Wayne Davison2014-01-191-2/+1
| | | | | | | I'm backing out the xattr optimization that was put in to try to make xattr data sending more optimal on hard-linked files. The code was causing hard-to-reproduce bugs, and it's better to get things done fully & correctly over fully optimally.
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Check if sender file changed before allowing a remove.Wayne Davison2011-06-181-3/+25
| | | | Fixes bug 7691.
* Avoid re-setting (and sending) xattrs on a hard-linked file w/the same xattrs.Wayne Davison2011-03-261-2/+4
| | | | Improved the xattrs testing to include hard-linking.
* More --timeout improvements, especially for the receiving side:Wayne Davison2010-01-021-3/+2
| | | | | | | | | | - The receiver now sends keep-alive messages to the generator when it is actively doing work and hasn't sent anything recently. This ensures that the generator won't timeout if the receiver is working hard. - The perform_io() code has improved keep-alive participation. - Allow the sender to send some keep-alive messages, which ensures that if it is in a lull, it can probe the socket.
* Improve --timeout method to take into account all I/O that is going on.Wayne Davison2009-12-191-2/+3
| | | | | | | | | | The receiving side also switches timeout handling from the receiver to the generator, which obviates the need for the sender to send any keep-alive messages at all (for protocol 31 and beyond). Given this setup, all keep-alive messages are now sent as empty MSG_DATA messages, with MSG_NOOP messages only being understood and (when necessary) acted upon to forward a keep-alive event to an older receiver. This is both safer and more compatible with older versions.
* Change an RERR_* to RERR_FILEIO.Wayne Davison2009-11-081-1/+1
|
* Fix a hang when dealing with really large numbers of filesWayne Davison2009-10-291-0/+4
| | | | in an incremental recursion scan.
* Fix %b and %c so that they count per-transfer bytes again.Wayne Davison2009-10-251-6/+6
|
* A major overhaul of I/O routines, creating perform_io().Wayne Davison2009-10-171-1/+1
| | | | | | | | | | | | | | | | | | Files-from data is now sent as multiplexed I/O so that it can mingle with any messages (such as debug output). Requires protocol 31. Protocol 31 no longer disables output verbosity in a couple instances that used to cause protocol issues. Got rid of MSG_* messages that have implied raw data that follows after them. We instead send a negative index value as a part of the raw data stream, which is guaranteed to be output together with the following data. This only affects the (in-progress) protocol 31 and the (self- contained) communication stream from the receiver to the generator. Added --debug=IO and improved --debug=FLIST. Some --debug=IO output requires --msgs2stderr to be used to see it (i.e. sending a message about sending a message would send another message, ad infinitum).
* Avoid calling send_extra_file_list() when we shouldn't.Wayne Davison2009-10-131-1/+8
|
* Fix daemon's conveyance of io_error value from sender.Wayne Davison2009-09-051-0/+4
|
* Have the sender use dead time to pad out the file list.Wayne Davison2009-08-221-2/+2
|
* Fixed the use of --xattrs with --only-write-batch.Wayne Davison2009-04-121-3/+2
|
* Fixed the delete statistics with --delete-delay and --delete-after.Wayne Davison2009-01-171-2/+0
|
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Enhanced the --stats output:Wayne Davison2008-09-261-1/+20
| | | | | | | - Mention how many files were created (protocol >= 29). - Mention how many files were deleted (new in protocol 31). - Follow the file-count, created-count, and deleted-count with a break-out list of each count by type.
* Split up the ifuncs.h file into 3 .h files.Wayne Davison2008-09-011-1/+1
|
* Output numbers in 3-digit groups by default (e.g. 1,234,567).Wayne Davison2008-09-011-3/+4
| | | | | Also improved the human-readable output functions, including adding the ability to output negative numbers.
* Changed flist_for_ndx() to optionally die with an errorWayne Davison2008-08-141-7/+1
| | | | if the index isn't found.
* Output an FERROR* for a general io_error, and an FWARNING for otherWayne Davison2008-07-311-2/+2
| | | | io_error flags.
* Changed the chksum debug flag to deltasum.Wayne Davison2008-07-201-4/+4
|
* Changed human_num() to big_num() with an extra arg so that it canWayne Davison2008-07-171-6/+6
| | | | be used in place of all %.0f output idioms.
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-15/+17
| | | | fine-grained output control (in addition to the coarse -v).
* Improved the chdir() code:Wayne Davison2008-03-301-2/+2
| | | | | | | | | | | | | - Renamed push_dir() to change_dir() and revised it a little so that it can chdir() to a relative path without an intervening chdir() back to the staring path. - Renamed push_pathname() to change_pathname() and revised it to take different args and to only call path_is_daemon_excluded() on a new path (not a revisit of a file's already-checked path). - Fixed change_pathname() to set the right pathname value when a chdir() call fails. - Set orig_dir once outside of the change_pathname() function. - Got rid of pop_dir().
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Don't try to use recv_xattr_request() with --dry-run. Fixes anWayne Davison2008-02-041-1/+1
| | | | internal abbrev error on the sending side.
* Updated indexing for accurate progress and improved raw ndx values.Wayne Davison2007-12-081-1/+2
| | | | | | | | The sending side now has a sorted file-list in iconv mode so that it can output progress in sorted order. Simplified the over-the-wire index values to ensure both sides will always agree on the values. Optimized the allocation of the dir_flist->sorted array on the receiving side with --iconv and incremental recursion.
* New logging categories added to allow differentiation betweenWayne Davison2007-11-221-3/+3
| | | | | transfer errors, normal errors, and warnings. New messages are translated into old FERROR/FINFO categories for older protocols.
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* If we get an ndx that is 1 entry prior to an incremental flist'sWayne Davison2007-07-081-2/+5
| | | | start, it refers to the file list's parent dir.
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* Changed F_ROOTDIR() to F_PATHNAME().Wayne Davison2007-04-261-4/+4
|
* The improved --xattrs option is landing on the trunk.Wayne Davison2007-04-071-8/+25
|
* - Moved the second send_extr_file_list() call to a better spot.Wayne Davison2007-02-161-5/+0
| | | | - Moved the FILECNT_LOOKAHEAD define into rsync.h.
* Improved the incremental sending of file lists in two ways: (1)Wayne Davison2007-02-161-1/+6
| | | | | | | | | | when the sender gets an index of a file to send, we make sure to send enough future file-list data relative to the new cur_flist value before we send the data for the file transfer (ensuring that the generator gets the data in a more timely manner), and (2) the generator flushes the output socket after each file-list object has completed its scan so that the sender knows in a more timely manner that more list data is needed.
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* Mention the year 2007 in the copyright declarations.Wayne Davison2007-01-311-1/+1
|
* Changed the variable "incremental" to "inc_recurse".Wayne Davison2007-01-271-3/+3
|
* Got rid of unused externs.Wayne Davison2007-01-271-1/+0
|
* Use write_ndx() and read_ndx().Wayne Davison2006-12-281-4/+4
|
* Handle the new incremental-recursion mode.Wayne Davison2006-12-281-59/+81
|
* Use F_ROOTDIR() in place of dir.root.Wayne Davison2006-12-171-4/+4
|
* Use the latest F_*() accessors.Wayne Davison2006-12-051-1/+1
|
* - Typical tranfers now save 12-20 bytes per file because several varsWayne Davison2006-12-031-3/+3
| | | | | | | were moved out of file_struct into an optional member-var setup. - Renamed and reorganized the FLAG_* defines. - Use NDX_DONE instead of a literal -1 when sending/checking the end-of-phase index value.
* Restored write_ndx_and_attrs() and made it public.Wayne Davison2006-12-021-0/+13
|