Wayne Davison [Thu, 31 Mar 2005 03:01:26 +0000 (03:01 +0000)]
- Made the handling of adjacent percents (e.g. "%%b") work like it
did in older versions.
- Added a comment for log_format_has().
Wayne Davison [Thu, 31 Mar 2005 01:09:18 +0000 (01:09 +0000)]
In log_formatted(), add the newline to the format string so
that we can call rwrite() instead of rprintf().
Wayne Davison [Thu, 31 Mar 2005 00:50:58 +0000 (00:50 +0000)]
Enabled width-sizing for %L.
Wayne Davison [Thu, 31 Mar 2005 00:21:15 +0000 (00:21 +0000)]
Use new log_format_has() function instead of strstr().
Wayne Davison [Thu, 31 Mar 2005 00:19:13 +0000 (00:19 +0000)]
Added log_format_has().
Wayne Davison [Wed, 30 Mar 2005 23:39:00 +0000 (23:39 +0000)]
Make sure that we can't scan past the end of the format string.
Wayne Davison [Wed, 30 Mar 2005 20:41:11 +0000 (20:41 +0000)]
Optimized '%f' a little more.
Wayne Davison [Wed, 30 Mar 2005 20:18:48 +0000 (20:18 +0000)]
Allow %i to have a field width.
Wayne Davison [Wed, 30 Mar 2005 19:44:29 +0000 (19:44 +0000)]
- Allow the infix field width to start with a '-'.
- Apply the field width to all escapes, not just numeric ones.
Wayne Davison [Wed, 30 Mar 2005 19:41:51 +0000 (19:41 +0000)]
Mention the numeric field width now possible in the % escapes.
Wayne Davison [Wed, 30 Mar 2005 19:39:11 +0000 (19:39 +0000)]
Mention that the % escapes can now have a numeric infix.
Wayne Davison [Wed, 30 Mar 2005 19:34:20 +0000 (19:34 +0000)]
dropped the "const" from the return value of safe_fname() because
some callers would like to manipulate the string in the buffer.
Wayne Davison [Wed, 30 Mar 2005 18:27:09 +0000 (18:27 +0000)]
Allow the escapes in the log-format string to contain a numeric
field width (e.g. %8l %07p).
Wayne Davison [Wed, 30 Mar 2005 17:31:35 +0000 (17:31 +0000)]
Fixed a comment.
Wayne Davison [Wed, 30 Mar 2005 16:55:11 +0000 (16:55 +0000)]
Moved a call to output_summary() up a line.
Wayne Davison [Wed, 30 Mar 2005 16:51:33 +0000 (16:51 +0000)]
Tweaked a couple sentences.
Wayne Davison [Wed, 30 Mar 2005 16:35:01 +0000 (16:35 +0000)]
Changed %i to output '>' for a local copy.
Wayne Davison [Wed, 30 Mar 2005 16:33:41 +0000 (16:33 +0000)]
Got rid of a useless extern.
Wayne Davison [Tue, 29 Mar 2005 22:05:33 +0000 (22:05 +0000)]
- Fixed a potential crash if the receiver couldn't open the basis file
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.
Wayne Davison [Tue, 29 Mar 2005 19:49:40 +0000 (19:49 +0000)]
- Warn about missing batched updates the generator wants but the
batch doesn't have.
- Tweaked the "skipping ..." message that is output for already-
applied batched updates.
Wayne Davison [Tue, 29 Mar 2005 11:11:35 +0000 (11:11 +0000)]
Split report() into handle_stats() and output_report() so that (1)
the report happens after all --delete-after activity has ceased when
pulling, and (2) a batch-file created when pushing gets the stats
values written out prior to any end-of-run keep-alive packets.
Wayne Davison [Tue, 29 Mar 2005 10:57:31 +0000 (10:57 +0000)]
Changed maybe_emit_filelist_progress() and emit_filelist_progress()
to take an integer count instead of a struct file_list so that we
can pass in a file-list-count offset for delete's separate calls
to send_directory().
Wayne Davison [Tue, 29 Mar 2005 10:41:26 +0000 (10:41 +0000)]
Turn off do_progress during the file-update phase so that
--delete-during and --fuzzy don't get any superfluous
" N files..." lines output in the middle of the processing.
Wayne Davison [Tue, 29 Mar 2005 06:18:24 +0000 (06:18 +0000)]
Preparing for release of 2.6.4pre4
Wayne Davison [Tue, 29 Mar 2005 06:15:47 +0000 (06:15 +0000)]
Improved several items and preparing for final 2.6.4 release.
Wayne Davison [Tue, 29 Mar 2005 06:15:08 +0000 (06:15 +0000)]
Add data for 2.6.4.
Wayne Davison [Tue, 29 Mar 2005 01:04:20 +0000 (01:04 +0000)]
If --delay-updates wasn't specified, write out two -1 indexes at
the same time to avoid a useless round-trip delay for an empty
delay-updates phase.
Wayne Davison [Mon, 28 Mar 2005 20:54:06 +0000 (20:54 +0000)]
Added --protocol and made some batch-file improvements.
Wayne Davison [Mon, 28 Mar 2005 20:40:25 +0000 (20:40 +0000)]
Added --protocol to --help output.
Wayne Davison [Mon, 28 Mar 2005 17:29:27 +0000 (17:29 +0000)]
Some temporary code for 2.6.4pre3 compatibility (which can be
safely removed for the next release).
Wayne Davison [Mon, 28 Mar 2005 17:08:47 +0000 (17:08 +0000)]
Chaging ITEM_UNUSED back to ITEM_DUMMY_BIT for now -- we'll need
to get rid of it later on.
Wayne Davison [Sun, 27 Mar 2005 05:58:40 +0000 (05:58 +0000)]
Changed ITEM_DUMMY_BIT to ITEM_UNUSED.
Wayne Davison [Sun, 27 Mar 2005 05:58:38 +0000 (05:58 +0000)]
Got rid of temporary code that detected and rejected older 2.6.4
pre-release versions.
Wayne Davison [Sun, 27 Mar 2005 05:58:36 +0000 (05:58 +0000)]
Got rid of temporary code that set the ITEM_DUMMY_BIT.
Wayne Davison [Sun, 27 Mar 2005 05:49:24 +0000 (05:49 +0000)]
--compress is now saved in a batch's option-state flags.
Wayne Davison [Sun, 27 Mar 2005 05:32:36 +0000 (05:32 +0000)]
Decided that the '<' and '>' output in the %i format were
the opposite of what they should be.
Wayne Davison [Sun, 27 Mar 2005 05:02:49 +0000 (05:02 +0000)]
- Fixed a bug in the saving of the --dirs option's state.
- Added the saving of the --compress option's state.
- Deal with the xfer_dirs var in a better way for pre-29 batches.
Wayne Davison [Fri, 25 Mar 2005 16:45:58 +0000 (16:45 +0000)]
Mention that --dry-run no longer conflicts with the batch options.
Wayne Davison [Thu, 24 Mar 2005 16:41:16 +0000 (16:41 +0000)]
- Don't complain if --dry-run is specified with --read-batch
or --write-batch.
- If --write-batch is combined with --dry-run, just disable
--write-batch (that avoids trying to create a batch file
and tells the user what would be transferred).
Wayne Davison [Thu, 24 Mar 2005 16:38:34 +0000 (16:38 +0000)]
If --dry-run is enabled with --read-batch, we must discard the
transfer data.
Wayne Davison [Wed, 23 Mar 2005 16:04:17 +0000 (16:04 +0000)]
List /etc instead of /, but only if it exists and is readable.
Wayne Davison [Fri, 18 Mar 2005 02:10:34 +0000 (02:10 +0000)]
Mention when we run fakeroot.
Wayne Davison [Fri, 18 Mar 2005 02:07:25 +0000 (02:07 +0000)]
If we're not root and the "fakeroot" command is available, use it
to re-run the script while pretending to be root.
Wayne Davison [Thu, 17 Mar 2005 08:59:48 +0000 (08:59 +0000)]
Set a maximum distance-measure that find_fuzzy() will accept.
Wayne Davison [Thu, 17 Mar 2005 08:45:36 +0000 (08:45 +0000)]
Fixed a problem with the stripping of the .bak/.old/.orig suffixes
in find_filename_suffix().
Wayne Davison [Thu, 17 Mar 2005 00:52:33 +0000 (00:52 +0000)]
Fixed the -r kluge sent for pre-2.6.4 --list-only support.
Wayne Davison [Thu, 17 Mar 2005 00:41:18 +0000 (00:41 +0000)]
We need to run our post-processing activities after the end of
the receiver's delay-update processing.
Wayne Davison [Wed, 16 Mar 2005 02:50:00 +0000 (02:50 +0000)]
Mention one other recent change.
Wayne Davison [Wed, 16 Mar 2005 01:12:44 +0000 (01:12 +0000)]
Preparing for release of 2.6.4pre3
Wayne Davison [Wed, 16 Mar 2005 01:06:33 +0000 (01:06 +0000)]
Changed error message for incompatible 2.6.4 pre-release versions.
Wayne Davison [Tue, 15 Mar 2005 23:23:45 +0000 (23:23 +0000)]
Document error messages 6 and 25.
Wayne Davison [Tue, 15 Mar 2005 23:23:41 +0000 (23:23 +0000)]
Added the error message for RERR_LOG_FAILURE and used it when
the daemon can't open the log-file.
Wayne Davison [Tue, 15 Mar 2005 23:23:39 +0000 (23:23 +0000)]
Added RERR_LOG_FAILURE define.
Wayne Davison [Tue, 15 Mar 2005 19:19:44 +0000 (19:19 +0000)]
- Made read_item_attrs() detect and reject a pre1/pre2 rsync (used
by both the sender and the receiver).
- Added an extra phase to the end of the transfer to better handle
delayed updates that have hard links.
Wayne Davison [Tue, 15 Mar 2005 19:19:41 +0000 (19:19 +0000)]
Added an extra phase to the end of the transfer to handle
delayed updates that have hard links.
Wayne Davison [Tue, 15 Mar 2005 19:19:38 +0000 (19:19 +0000)]
- Added an extra phase to the end of the transfer to better handle
delayed updates that have hard links.
- Send the new ITEM_DUMMY_BIT to the sender so that we can figure
out if the other side is pre1 or pre2 and let the receiver reject
it.
Wayne Davison [Tue, 15 Mar 2005 19:19:36 +0000 (19:19 +0000)]
Added ITEM_DUMMY_BIT and moved a few other 'ITEM_*'s around.
Wayne Davison [Tue, 15 Mar 2005 17:30:56 +0000 (17:30 +0000)]
Tweaked the end-of-phase code.
Wayne Davison [Tue, 15 Mar 2005 17:30:52 +0000 (17:30 +0000)]
Handle --delay-updates at the end of the first phase.
Wayne Davison [Tue, 15 Mar 2005 17:30:50 +0000 (17:30 +0000)]
Mention the index number for an "invalid packet at end of run".
Wayne Davison [Mon, 14 Mar 2005 22:22:42 +0000 (22:22 +0000)]
Fixed a just-introduced crash bug in the --fuzzy processing.
Wayne Davison [Mon, 14 Mar 2005 22:17:25 +0000 (22:17 +0000)]
A simple test to ensure that fuzzy processing is working.
Wayne Davison [Mon, 14 Mar 2005 17:30:15 +0000 (17:30 +0000)]
Split the conditional-directory sending out of send_file_name() into
a new function: send_if_directory(). This lets the code that is
recursively descending through the directories make its list of a
dir's contents and close the DIR handle before recursing into the
subdirs. Also, the "recurse" var is just true/false once again.
Wayne Davison [Mon, 14 Mar 2005 17:30:13 +0000 (17:30 +0000)]
The "recurse" value is back to being just 1 or 0 (true or false).
Wayne Davison [Mon, 14 Mar 2005 17:30:10 +0000 (17:30 +0000)]
Got rid of "fudged_recurse".
Wayne Davison [Mon, 14 Mar 2005 17:06:08 +0000 (17:06 +0000)]
Got rid of an unused extern.
Wayne Davison [Mon, 14 Mar 2005 03:36:56 +0000 (03:36 +0000)]
Got rid of some code in f_name_cmp() that tried to make all the
dirname pointers to equivalent strings have identical pointers.
Wayne Davison [Mon, 14 Mar 2005 03:35:40 +0000 (03:35 +0000)]
The --fuzzy code now handles a file->dirname that has an identical
string as another file without being an identical pointer.
Wayne Davison [Sun, 13 Mar 2005 05:36:13 +0000 (05:36 +0000)]
Document the latest %i output.
Wayne Davison [Sun, 13 Mar 2005 05:35:49 +0000 (05:35 +0000)]
Output a '*' at the start of the %i string when deleting.
Wayne Davison [Sun, 13 Mar 2005 05:34:00 +0000 (05:34 +0000)]
- Improved a couple error messages.
- Improved a function name.
Wayne Davison [Sat, 12 Mar 2005 23:54:05 +0000 (23:54 +0000)]
Some misc. improvements (I hope).
Wayne Davison [Sat, 12 Mar 2005 23:52:18 +0000 (23:52 +0000)]
Improved two sentences.
Wayne Davison [Sat, 12 Mar 2005 23:52:08 +0000 (23:52 +0000)]
Tweaked the name of a variable.
Wayne Davison [Fri, 11 Mar 2005 19:23:09 +0000 (19:23 +0000)]
Mention --copy-dest.
Wayne Davison [Fri, 11 Mar 2005 17:36:05 +0000 (17:36 +0000)]
Re-enabled the --copy-dest part of the test.
Wayne Davison [Fri, 11 Mar 2005 17:36:03 +0000 (17:36 +0000)]
Added --copy-dest logic, and improved the updating of --compare-dest
and --link-dest files that are up-to-date but have differing attributes.
Wayne Davison [Fri, 11 Mar 2005 17:35:59 +0000 (17:35 +0000)]
Added --copy-dest logic.
Wayne Davison [Fri, 11 Mar 2005 17:35:57 +0000 (17:35 +0000)]
Tweaked the comment on copy_file().
Wayne Davison [Fri, 11 Mar 2005 17:35:54 +0000 (17:35 +0000)]
Document --copy-dest.
Wayne Davison [Thu, 10 Mar 2005 00:06:01 +0000 (00:06 +0000)]
- Fixed the reading of the fuzzy xname from the socket.
- Call read_item_attrs() with its new arg.
Wayne Davison [Thu, 10 Mar 2005 00:05:58 +0000 (00:05 +0000)]
- Changed read_item_attrs() to return the length of the xname string.
- Tweaked the order of the args to write_item_attrs().
Wayne Davison [Wed, 9 Mar 2005 23:46:28 +0000 (23:46 +0000)]
- Improved the error-checking for some delete_item() calls.
- Move the non-regular-file delete-check above the alt-basis check
where it belongs.
- Keep track of the real statret and real stat-struct for certain
alt-basis scenarios (e.g. partial-dir and fuzzy) so that we send
the right itemized change flags.
Wayne Davison [Wed, 9 Mar 2005 18:55:09 +0000 (18:55 +0000)]
Mention the latest protocol-29 changes.
Wayne Davison [Wed, 9 Mar 2005 18:54:19 +0000 (18:54 +0000)]
We now handle the reading and writing of extra basis-file info: the
fnamecmp_type byte, and the extra name (currently used for fuzzy
processing and hard-link status).
Wayne Davison [Wed, 9 Mar 2005 18:54:16 +0000 (18:54 +0000)]
Got rid of the name-pipe, so we now read the fnamecmp_type data over
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).
Wayne Davison [Wed, 9 Mar 2005 18:54:12 +0000 (18:54 +0000)]
Made itemize() output the fnamecmp_type and the fuzzy name based on
the new ITEM_BASIS_TYPE_FOLLOWS and ITEM_XNAME_FOLLOWS flags. Got
rid of the name-pipe to the receiver.
Wayne Davison [Wed, 9 Mar 2005 18:54:09 +0000 (18:54 +0000)]
Got rid of the name-pipe from the generator to the receiver.
Wayne Davison [Wed, 9 Mar 2005 18:54:06 +0000 (18:54 +0000)]
When itemizing, we now set ITEM_LOCAL_CHANGE and ITEM_XNAME_FOLLOWS.
Wayne Davison [Wed, 9 Mar 2005 18:54:02 +0000 (18:54 +0000)]
- Made an overflow in read_vstring() return an error instead of dying.
- Got rid of a flush kluge that was needed for the name-pipe.
Wayne Davison [Wed, 9 Mar 2005 18:53:58 +0000 (18:53 +0000)]
Handle the new way that 'c' and 'h' get output by "%i".
Wayne Davison [Wed, 9 Mar 2005 18:53:55 +0000 (18:53 +0000)]
Complain if a feature that requires protocol 29 doesn't get it.
Wayne Davison [Wed, 9 Mar 2005 18:53:53 +0000 (18:53 +0000)]
Made the dest_option string non-static.
Wayne Davison [Wed, 9 Mar 2005 18:53:49 +0000 (18:53 +0000)]
Changed some of the ITEM_* defines.
Wayne Davison [Wed, 9 Mar 2005 04:00:45 +0000 (04:00 +0000)]
Mention the latest bug-fix.
Wayne Davison [Wed, 9 Mar 2005 04:00:20 +0000 (04:00 +0000)]
We need to mention any change to a directory, not just a time change.
Yeah, this isn't very consistent with how files are treated, but it's
backward compatible.
Wayne Davison [Wed, 9 Mar 2005 03:49:07 +0000 (03:49 +0000)]
Fixed the change-report output for a directory that has no
write permissions.
Wayne Davison [Wed, 9 Mar 2005 02:25:34 +0000 (02:25 +0000)]
Backward compatibility fix in read_iflags() (for protocols < 29).
Wayne Davison [Sun, 6 Mar 2005 23:37:42 +0000 (23:37 +0000)]
Backed out the hack that reversed ITEM_REPORT_XATTRS with
ITEM_TRANSFER. Yes, it allowed some kludge code that made backward
compatibility seamless, but it made it impossible to remove the hack
in the future. This way, the backward compatibility is just
slightly inaccurate in the display of the first letter in the %i
output, and the only hack can be safely removed without causing
problems.
Wayne Davison [Sat, 5 Mar 2005 18:58:42 +0000 (18:58 +0000)]
- When --max-delete is exceeded, we now count how many deletions
would have happend, warn about the number skipped, and set
io_error to IOERR_DEL_LIMIT.
- When dry_run > 1 (which indicates that the destinationdir is
missing), skip deletions in that dir. This fixes a bug in a
copy that is creating the destination dir w/--delete enabled.