aboutsummaryrefslogtreecommitdiffstats
path: root/receiver.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.
* Avoid the use of an extra leading dot when using --temp-dir.Wayne Davison2014-02-261-3/+6
|
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Undo the hard-link xattr optimization in 78286a03.Wayne Davison2014-01-191-4/+2
| | | | | | | 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.
* Flush write buffer on an aborted in-place transfer.Wayne Davison2013-09-281-1/+2
|
* Avoid preallocation on inplace file that is already long enough.Wayne Davison2013-06-021-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Fix --only-write-batch hang with --hard-links.Wayne Davison2012-01-281-0/+2
| | | | Fixes bug 8565.
* make repeated --fuzzy option look into alt-dest dirs.Wayne Davison2011-11-231-6/+11
|
* Add some temp-name dot heuristics for OS X's sake.Wayne Davison2011-04-051-13/+21
| | | | | | | | | | | | - Drop one leading '.' from the filename (before adding our own). - Drop one trailing '.' from a (possibly truncated) name prior to the .XXXXXX suffix being added. - Allow the temp-name to collapse to just the .XXXXXX suffix if the path is long enough to require that. Note that we don't try to remove multiple dots from a filename that actually has multiple consecutive dots, since we might as well learn early if the final name is going to fail or not.
* Applying the preallocate patch.Wayne Davison2011-04-041-1/+25
|
* 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.
* Avoid directory permission issues with --fake-super.Wayne Davison2011-01-011-2/+13
| | | | Fixes bug 7070.
* Avoid splitting a multi-byte character when trimming a name.Wayne Davison2010-11-261-0/+8
| | | | Fixes bug 7816.
* Use ftruncate() at the end of a --sparse file.Wayne Davison2010-11-061-3/+2
| | | | Fixes bug 7337.
* Mention seek effect of an unmoved --inplace chunk.Wayne Davison2010-11-061-2/+3
|
* Avoid a crash with --append-verify when discarding the received data.Wayne Davison2010-08-211-1/+1
| | | | Fixes bug 6293.
* Avoid a non-writable-by-the-user file when copying xattrs.Wayne Davison2010-08-211-1/+1
| | | | Fixes part of the problem in bug 5147.
* More --timeout improvements, especially for the receiving side:Wayne Davison2010-01-021-0/+4
| | | | | | | | | | - 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.
* Fix %b and %c so that they count per-transfer bytes again.Wayne Davison2009-10-251-7/+7
|
* A major overhaul of I/O routines, creating perform_io().Wayne Davison2009-10-171-3/+6
| | | | | | | | | | | | | | | | | | 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).
* Create non-transferred files in a more atomic manner:Wayne Davison2009-08-291-24/+56
| | | | | | | | | | If a symlink, device, special-file, or hard-linked file is replacing an existing non-directory, the new file is created using a temporary filename and then renamed into place. Also changed the handling of a cluster of hard-linked symlinks/devices/special-files to always ensure the first item in the cluster is correct, since it doesn't really save any significant work to try to find an existing correct item later in the cluster to link with.
* Use typedefs for the filter structures.Wayne Davison2009-05-231-1/+1
|
* Fixed the use of --xattrs with --only-write-batch.Wayne Davison2009-04-121-2/+2
|
* More backup improvements:Wayne Davison2009-04-111-1/+1
| | | | | | | | | | | | | | | - Changed get_backup_name() to verify the backup path, and make any missing directories. This avoids accidental use of a symlink as a dir in a backup path, and gets rid of any other non-dirs that are in the way. It also avoids the need for various operations to retry after calling make_bak_dir(), simplifying several pices of code. - Changed create_directory_path() to make_path(), giving it flags that lets the caller decide if it should skip a leading slash or drop the trailing filename. - Mention when we create the backup directory, so the user is not caught unaware when rsync uses a directory they didn't expect. - Got rid of some dir-moving backup code that is not used. - Added a little more backup-debug output.
* Fixed --dry-run with --read-batch:Wayne Davison2009-04-041-14/+14
| | | | | - Avoid sending MSG_NO_SEND to the generator. - Check if the file is wanted before discarding the batched data.
* Check the right flist_num in gen_wants_ndx().Wayne Davison2009-01-181-7/+13
|
* Fixed the delete statistics with --delete-delay and --delete-after.Wayne Davison2009-01-171-5/+0
|
* Fixed a hang in the inc_recurse batch-reading code.Wayne Davison2009-01-171-1/+9
|
* Improved the backup code:Wayne Davison2009-01-031-1/+1
| | | | | | | | - Backups do not interfere with an atomic update (when possible). - Backing up a file will remove a directory that is in the way and visa versa. - Unify the backup-dir and non-backup-dir code in backup.c. - Improved the backup tests a little bit.
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* An ftruncate() failure should result in FERROR_XFER.Wayne Davison2008-11-151-5/+4
|
* Fixed a bunch of "warn_unused_result" compiler warnings.Wayne Davison2008-11-091-2/+6
|
* Enhanced the --stats output:Wayne Davison2008-09-261-1/+23
| | | | | | | - 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.
* More batch-mode fixes to handle redos properly (and without hanging).Wayne Davison2008-09-261-32/+64
|
* Fixed skipping of unneeded updates in a batch file whenWayne Davison2008-09-231-3/+5
| | | | incremental recursion is active. Added test.
* 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-5/+6
| | | | | Also improved the human-readable output functions, including adding the ability to output negative numbers.
* Properly handle a failure to create a partial directory, which isWayne Davison2008-08-011-8/+15
| | | | | especially important for --delay-updates, particularly when --remove-source-files was also specified.
* Include the array-size in array externs so that IBM's code-checkerWayne Davison2008-07-201-2/+2
| | | | can do more checking for us.
* Changed the chksum debug flag to deltasum.Wayne Davison2008-07-201-4/+4
|
* Added a '%C' (MD5 checksum) flag for the output/logfile formatting.Wayne Davison2008-07-191-5/+7
|
* Changed human_num() to big_num() with an extra arg so that it canWayne Davison2008-07-171-10/+10
| | | | be used in place of all %.0f output idioms.
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-18/+20
| | | | fine-grained output control (in addition to the coarse -v).
* Don't send daemon-config filter-action messages back to the user.Wayne Davison2008-03-241-2/+2
|
* Changed the name of the server_filter_list to beWayne Davison2008-03-201-5/+5
| | | | daemon_filter_list, for improved clarity.
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* The daemon no longer logs a recv entry for a file that is notWayne Davison2008-02-171-1/+1
| | | | actually being updated due to the --only-write-batch option.
* Fixed several glitches with failed updates and batch files:Wayne Davison2008-01-271-8/+11
| | | | | | | | - Correctly identify when a missing batch update is for a resend. - Made a missing batch update an xfer error. - Made a failed redo an xfer error. - Identify a failed transfer file consistently when it is a solo file. - Have --read-batch say "may try again" instead of "will try again".
* Fixed a case where the receiver indicates a successful update when theWayne Davison2007-12-311-15/+20
| | | | transfer succeeded, but the final rename failed.