summaryrefslogtreecommitdiff
path: root/receiver.c
AgeCommit message (Collapse)AuthorFilesLines
2005-09-15Added a comment.Wayne Davison1-0/+2
2005-08-30When --append is entering the redo phase, make sure thatWayne Davison1-1/+5
sparse_files is disabled (because it conflicts with an inplace update).
2005-07-30- The combination of --update and --progress now outputs progressWayne Davison1-1/+5
information during the checksum scan of the already-sent data. - When --inplace creates a file, give it 0600 permissions, not 0000.
2005-07-28Support new --append option.Wayne Davison1-0/+24
2005-04-14Support the reception of a file-transfer header without xfer dataWayne Davison1-1/+2
when we're on the server side and --only-write-batch was specified.
2005-04-09- Use the new do_xfers variable in place of some dry_run checksWayne Davison1-2/+8
(with appropriate negation). - If we get a transfer when write_batch is < 0, discard it.
2005-03-29- Fixed a potential crash if the receiver couldn't open the basis fileWayne Davison1-3/+5
and the sender (possibly via a batch) tells us to use basis data. - Enhanced the batched-update skipping message to indicate what phase is being skipped.
2005-03-29- Warn about missing batched updates the generator wants but theWayne Davison1-9/+20
batch doesn't have. - Tweaked the "skipping ..." message that is output for already- applied batched updates.
2005-03-24If --dry-run is enabled with --read-batch, we must discard theWayne Davison1-0/+2
transfer data.
2005-03-15Added an extra phase to the end of the transfer to handleWayne Davison1-6/+12
delayed updates that have hard links.
2005-03-15Handle --delay-updates at the end of the first phase.Wayne Davison1-33/+39
2005-03-10- Fixed the reading of the fuzzy xname from the socket.Wayne Davison1-28/+13
- Call read_item_attrs() with its new arg.
2005-03-09Got rid of the name-pipe, so we now read the fnamecmp_type data overWayne Davison1-26/+50
the socket for protocol >= 29, or handle it like the old days for older protocol versions. This means that we now validate this extra data for safety (such as the fuzzy filename).
2005-03-05Don't try to determine the phase we're in by looking at the valueWayne Davison1-3/+2
of csum_length -- it might have been computed to be SUM_LENGTH. Instead, look at the "phase" variable directly.
2005-03-05- Updated to handle the new ITEM_* flags.Wayne Davison1-11/+8
- Send MSG_SUCCESS for hard-linked files when -H was specified.
2005-03-04Got rid of some code in the main recv_files() loop by calling theWayne Davison1-24/+7
new functions read_iflags() and maybe_log_item().
2005-03-04Call log_item() instead of log_recv().Wayne Davison1-5/+5
2005-03-04Added read_vstring() and write_vstring() to io.c instead ofWayne Davison1-17/+1
having this code in generator.c and receiver.c.
2005-02-26Moved the delete-after support into generator.c.Wayne Davison1-26/+0
2005-02-25Accept the new keep-alive (no-op) packet.Wayne Davison1-0/+4
2005-02-20Changed the memory implementation of --delay-updates so that itWayne Davison1-16/+71
only allocates memory to store needed bits, it sparsely allocates the bits in 16KB chunks, and the bit-finding loop works in a more efficient manner.
2005-02-20If --delay-updates is specified with --remove-sent-files, delayWayne Davison1-1/+7
the MSG_SUCCESS messages until we actually move the files into place at the end.
2005-02-20If --remove-sent-files was specified and we successfully updated aWayne Davison1-5/+10
file, send MSG_SUCCESS to the sender (through the generator).
2005-02-20Tweaked some externs.Wayne Davison1-7/+7
2005-02-19- Improved the logging of itemized changes for the daemon.Wayne Davison1-12/+16
- Make sure we debug-log our presence in recv_files().
2005-02-19Log items that are unchanged if verbose > 1.Wayne Davison1-2/+2
2005-02-18- Use read_short() and write_short().Wayne Davison1-3/+8
- If the user does not want itemized changes, don't log the name for attribute changes.
2005-02-16- The itemized flags are now 2 bytes instead of 1.Wayne Davison1-6/+4
- Always send/receive the itemized flags for protocols >= 29. - The output of the verbose log-the-transfer messages is always handled via log_recv() (when we're the client).
2005-02-16- We now accept an itemized-changes flag-byte over the socket if we'reWayne Davison1-7/+26
the local client and --itemized-changes was specified. If the item is not being updated, just call log_recv(). - We reject an attempt to file-update any non-regular file, not just dirs. - Avoid the verbose "log the transfer" output if --log-format was specified and log_before_transfer is in effect. - Call log_recv() with its new iflags arg.
2005-02-15Decided on a better option name --itemize-changes (-i).Wayne Davison1-3/+3
2005-02-15If -w and -v are both on, don't output the "log the transfer"Wayne Davison1-3/+5
verbose message.
2005-02-14Added code to read a fuzzy-basis name from the generator.Wayne Davison1-0/+34
2005-02-14John E. Malmberg convinced me to standardize on #ifs for definedWayne Davison1-1/+1
values instead of non-zero.
2005-02-11If a --delay-update can't use the partial-dir (e.g. if a serverWayne Davison1-1/+1
daemon excludes the dir or file), update the file without delay.
2005-02-07Added missing calls to safe_fname() and full_fname().Wayne Davison1-3/+6
2005-02-03Changed delete_files() to use the delete_in_dir() function, whichWayne Davison1-16/+7
saves a ton of memory for a large set of files.
2005-02-03- If recv_files() is sent the index of a directory, complain about itWayne Davison1-14/+15
and die. - Moved a few code snippets in recv_files() into better locations.
2005-01-31Tweaked one or more warning messages.Wayne Davison1-1/+1
2005-01-30- Restored the io_error test to delete_files().Wayne Davison1-3/+10
- Sanity check the dir_list value from send_file_list().
2005-01-29- Made delete_files() call send_file_list() and delete_missing()Wayne Davison1-3/+9
instead of delete_in_dir(). - Tweaked check in front of delete_files() call.
2005-01-28Changed "char" to "uchar" in delayed_bits's new_array() call.Wayne Davison1-1/+1
2005-01-28Use "#if" (not "#ifdef") for configure-defined macros.Wayne Davison1-1/+1
2005-01-27Implement the new --delay-updates option.Wayne Davison1-1/+39
2005-01-25Renamed several exclude-related functions/variables using newWayne Davison1-3/+3
filter terminology.
2005-01-24Moved some of the delete code into flist.c since the generator nowWayne Davison1-57/+5
calls it for the delete-during handling.
2005-01-23Go back to requiring -r for deletes to happen.Wayne Davison1-2/+2
2005-01-22Check the "keep_dirs" var instead of "recurse" to decide ifWayne Davison1-2/+2
delete-after is appropriate.
2005-01-21- Changed XMIT_TOP_DIR to XMIT_DEL_START.Wayne Davison1-1/+1
- Changed FLAG_TOP_DIR to FLAG_DEL_START.
2005-01-20Decided that delete_in_dir()'s call to delete_file() would beWayne Davison1-1/+1
better using DEL_RECURSE.
2005-01-19Got rid of delete_one() since we can (and do) use the updatedWayne Davison1-25/+4
delete_file() call now.