summaryrefslogtreecommitdiff
path: root/sender.c
AgeCommit message (Collapse)AuthorFilesLines
2005-03-05- Updated to handle the new ITEM_* flags.Wayne Davison1-11/+28
- Changed read_iflags() to read/write a suffixed hard-link name.
2005-03-04In read_iflags(), we need to set buf to an empty string.Wayne Davison1-0/+2
2005-03-04Moved some code out of the main loop in send_files() into a newWayne Davison1-29/+35
function called read_iflags() (which was made generic enough that the receiver could use it too). Also call the new maybe_log_item().
2005-03-04Call log_item() instead of log_send().Wayne Davison1-5/+5
2005-03-04Use the new "the_file_list" global instead of our "the_flist" local.Wayne Davison1-7/+4
2005-02-25Accept the new keep-alive (no-op) packet.Wayne Davison1-0/+7
2005-02-22Fixed a problem with the last change.Wayne Davison1-1/+1
2005-02-22We now look for the ITEM_USING_ALT_BASIS flag for an --inplaceWayne Davison1-2/+1
transer that is using an alternate basis file (instead of reading an extra byte after the flag word).
2005-02-20- For every file that we send off to the receiver, mark it withWayne Davison1-0/+31
FLAG_SENT. - Added successful_send(), which is called when MSG_SUCCESS was received from the receiver/generator side. This function validates the message, and removes the indicated file/symlink (assuming that remove_sent_files was actually set).
2005-02-20Tweaked some externs.Wayne Davison1-4/+3
2005-02-19Changed a couple log_recv() calls back to log_send().Wayne Davison1-2/+2
2005-02-19- Always send the itemized-info bytes on to the receiver. ThisWayne Davison1-21/+25
not only ensures that batch files are created consistently for push and pull, but allows a daemon to log itemized changes. - Improved the logging of itemized changes for the daemon. - Make sure we debug-log our presence in send_files().
2005-02-19Log items that are unchanged if verbose > 1.Wayne Davison1-5/+5
2005-02-18- Use read_short() and write_short().Wayne Davison1-13/+11
- 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-8/+11
- Always send/receive the itemized flags for protocols >= 29. - The output of the verbose log-the-transfer messages is always handled via log_send() (when we're the client).
2005-02-16- We now accept an itemized-changes flag byte over the socket if we'reWayne Davison1-9/+34
in --itemized-changes mode. If the item is not being updated, either pass it along to the receiver (if we're the server) or just call log_send(). - 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_send() 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-14Changed one size_t var into an int32.Wayne Davison1-1/+1
2005-02-11Made "i" a size_t in receive_sums().Wayne Davison1-3/+3
2005-02-02If the generator sends us the index of a directory, generate anWayne Davison1-0/+5
error and die.
2005-02-01Refer to the old basedir variable as dir.root.Wayne Davison1-2/+2
2005-01-24Moved the code that reads the extra byte for a modern inplaceWayne Davison1-5/+6
transfer up nearer the code that reads the index.
2005-01-17For --inplace over protocol-version 29 or greater, read theWayne Davison1-0/+7
type the type of basis file the generator is using from the socket and set the new updating_basis_file var.
2005-01-17- Moved read_sum_head() to io.c (because the generator uses it too).Wayne Davison1-18/+2
- Tweaked the read_size var (formerly map_size) that gets passed to map_file().
2005-01-01- Use an int32 for the each block-size variable.Wayne Davison1-3/+3
- Fixed a potential overflow in the map_size calculation.
2004-09-20Improved a comment.Wayne Davison1-1/+2
2004-09-07Turn off make_backups during the redo phase, just like the receiver.Wayne Davison1-0/+5
2004-08-03Call map_file() with its new args, including a suggested windowWayne Davison1-1/+5
size.
2004-07-26Use the new safe_fname() function.Wayne Davison1-13/+15
2004-07-20Call map_file() with its new block_size arg.Wayne Davison1-3/+2
2004-07-16My version of Mark Curtis's --inplace option.Wayne Davison1-13/+15
2004-07-15My modified version of Chris Shoemaker's improved batch-file handling.Wayne Davison1-107/+42
2004-06-18Tweaked some comments.Wayne Davison1-5/+5
2004-05-15Changed rprintf() calls that included strerror() to use rsyserr().Wayne Davison1-6/+7
2004-05-11In send_files(), changed the name of the map_struct variable fromWayne Davison1-11/+8
"buf" to "mbuf" (so that it wouldn't be so similar to the "buff" variable nor use a name that is more typically a char* buffer).
2004-02-17Don't create a pathname that has two leading slashes (which we usedWayne Davison1-3/+4
to do when the root of the transfer was "/").
2004-02-03Corrected sizeof usage:J.W. Schultz1-1/+1
sizeof obj sizeof (type)
2004-01-22Use the new f_name_to() calling syntax.Wayne Davison1-9/+4
2004-01-20Use new stringjoin() function.Wayne Davison1-4/+3
2004-01-15If we're a daemon talking with a pre-28 protocol, use FERROR for aWayne Davison1-3/+6
vanished-file message (not FINFO).
2004-01-13Set stats.current_file_index.Wayne Davison1-2/+1
2004-01-10Changed the call to write_batch_csum_info() to the latest syntax.Wayne Davison1-1/+1
2004-01-03Made the types used in the sum_buf and sum_struct structures consistentWayne Davison1-4/+4
with the variables in the code that manipulates these values.
2004-01-02Use the new f_name_to() call instead of strlcat() an f_name().Wayne Davison1-3/+3
2004-01-02Got rid of /* dw */ comments.Wayne Davison1-11/+11
2003-12-19Quiet a compiler warning.Wayne Davison1-2/+2
2003-12-15New "io_error" variable handling for RERR_VANISHED support.Wayne Davison1-10/+14
2003-12-06Sanity check s2length on recept.J.W. Schultz1-2/+8
2003-12-06Merged in the security fixes from 2.5.7.Wayne Davison1-2/+2