rsync/rsync.git
17 years agoSilence a compiler warning about a printf() %d mismatch.
Wayne Davison [Sun, 11 Mar 2007 06:50:48 +0000 (06:50 +0000)]
Silence a compiler warning about a printf() %d mismatch.

17 years agoTemporarily skip this test as it is taking too long on the
Wayne Davison [Sun, 11 Mar 2007 06:27:59 +0000 (06:27 +0000)]
Temporarily skip this test as it is taking too long on the
compile farm at the moment.

17 years agoUse the abbrevint30 routines in a few more places.
Wayne Davison [Sun, 11 Mar 2007 05:59:46 +0000 (05:59 +0000)]
Use the abbrevint30 routines in a few more places.

17 years agoMake configure continue if ACL support is not found and the user
Wayne Davison [Sun, 11 Mar 2007 05:54:21 +0000 (05:54 +0000)]
Make configure continue if ACL support is not found and the user
didn't explicitly ask for ACLs.

17 years agoMoved the new static internal functions from rsync.h to io.h.
Wayne Davison [Sun, 11 Mar 2007 05:43:55 +0000 (05:43 +0000)]
Moved the new static internal functions from h to io.h.

17 years agoThe ACL support has arrived! This version has a brand new protocol
Wayne Davison [Sun, 11 Mar 2007 00:13:34 +0000 (00:13 +0000)]
The ACL support has arrived!  This version has a brand new protocol
that makes it incompatible with all prior versions.  A patch will be
provided to allow talking with older (patched) rsync versions.

17 years agoChanged the code that cleans up the old nightly releases from
Wayne Davison [Thu, 8 Mar 2007 02:00:48 +0000 (02:00 +0000)]
Changed the code that cleans up the old nightly releases from
time-based to count-based (keeping the newest 10 items).

17 years agoDecided that we don't really want the rule that preserves the
Wayne Davison [Mon, 5 Mar 2007 17:08:00 +0000 (17:08 +0000)]
Decided that we don't really want the rule that preserves the
backup-suffix files to be perishable.

17 years agoA local server needs to process the auto-exclude rules since we don't
Wayne Davison [Sun, 4 Mar 2007 14:56:22 +0000 (14:56 +0000)]
A local server needs to process the auto-exclude rules since we don't
send the excludes over the socket for a local copy.

17 years agoMention the slight change to the auto-filter rules that are created
Wayne Davison [Sat, 3 Mar 2007 01:14:08 +0000 (01:14 +0000)]
Mention the slight change to the auto-filter rules that are created
for the --backup option and the --partial-dir option.

17 years agoMoved a couple auto-filter rules from options.c into compat.c so
Wayne Davison [Sat, 3 Mar 2007 01:06:45 +0000 (01:06 +0000)]
Moved a couple auto-filter rules from options.c into compat.c so
that we are sure to only apply the perishable filter modifier when
the receiving side is new enough to understand it.

17 years agoMake the auto-generated protect filters use the perishable flag so
Wayne Davison [Fri, 2 Mar 2007 21:14:01 +0000 (21:14 +0000)]
Make the auto-generated protect filters use the perishable flag so
that they don't stop a vanished directory from being removed.

17 years agoMention a couple more changes.
Wayne Davison [Sat, 17 Feb 2007 17:05:22 +0000 (17:05 +0000)]
Mention a couple more changes.

17 years agoMake sure that a newly-created destination directory gets the same
Wayne Davison [Sat, 17 Feb 2007 17:00:40 +0000 (17:00 +0000)]
Make sure that a newly-created destination directory gets the same
rules applied to it as other newly-created directories when --perms
wasn't specified.

17 years ago- Moved the second send_extr_file_list() call to a better spot.
Wayne Davison [Fri, 16 Feb 2007 02:47:12 +0000 (02:47 +0000)]
- Moved the second send_extr_file_list() call to a better spot.
- Moved the FILECNT_LOOKAHEAD define into rsync.h.

17 years agoImproved the incremental sending of file lists in two ways: (1)
Wayne Davison [Fri, 16 Feb 2007 02:35:31 +0000 (02:35 +0000)]
Improved the incremental sending of file lists in two ways: (1)
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.

17 years agoMake sure that the am_server variable is non-zero after parsing the
Wayne Davison [Fri, 16 Feb 2007 01:20:29 +0000 (01:20 +0000)]
Make sure that the am_server variable is non-zero after parsing the
options we received over the socket.  (Thanks, Matt!)

17 years agoFurther modifications to the copyright comment section.
Wayne Davison [Sun, 4 Feb 2007 14:54:58 +0000 (14:54 +0000)]
Further modifications to the copyright comment section.

17 years agoAdded a license comment to the top of the file.
Wayne Davison [Sat, 3 Feb 2007 22:46:57 +0000 (22:46 +0000)]
Added a license comment to the top of the file.

17 years agoThe "ndx" variable now holds the unique, over-the-wire value, not
Wayne Davison [Sat, 3 Feb 2007 05:13:17 +0000 (05:13 +0000)]
The "ndx" variable now holds the unique, over-the-wire value, not
a value that is relative to the cur_flist object.  This makes the
variable consistent with how the sender and the receiver use it.

17 years agoThe ndx arg passed to increment_active_files() is now the unique,
Wayne Davison [Sat, 3 Feb 2007 05:13:14 +0000 (05:13 +0000)]
The ndx arg passed to increment_active_files() is now the unique,
over-the-wire value, making it consistent with the ndx arg that
is passed to decrement_active_files().

17 years agoMention the year 2007 in the copyright declarations.
Wayne Davison [Wed, 31 Jan 2007 21:46:49 +0000 (21:46 +0000)]
Mention the year 2007 in the copyright declarations.

17 years agoChanged the main file-scan loop to not check for redo items when
Wayne Davison [Wed, 31 Jan 2007 21:45:42 +0000 (21:45 +0000)]
Changed the main file-scan loop to not check for redo items when
in incremental recurse mode -- it is enough to check for them
when changing from one file-list to another.

17 years agoThe code can now set cur_flist to NULL sooner than it used to, so the
Wayne Davison [Tue, 30 Jan 2007 03:57:55 +0000 (03:57 +0000)]
The code can now set cur_flist to NULL sooner than it used to, so the
flist_for_ndx() routine needs to work when cur_flist is NULL.

17 years ago- Renamed done_cnt -> msgdone_cnt.
Wayne Davison [Tue, 30 Jan 2007 03:57:52 +0000 (03:57 +0000)]
- Renamed done_cnt -> msgdone_cnt.
- Changed increment_active_files() to call check_for_finished_files()
  and to avoid calling both io_flush() and read_msg_fd() in the same
  iteration of a loop (since the former may have called the latter).

17 years agoMoved the code that checks for finished file-lists, for finished "redo"
Wayne Davison [Tue, 30 Jan 2007 03:57:48 +0000 (03:57 +0000)]
Moved the code that checks for finished file-lists, for finished "redo"
sends, and finished hard-links into check_for_finished_files(), a new
function that takes the place of check_for_finished_hlinks().  This
lets us signal the sender more rapidly when a file-list is done (which
ensures that it sends us more work to do in a timely manner), and also
avoids two potential deadlocks in the old code.

17 years agoChanged how send_extra_file_list() checks if we have enough future work.
Wayne Davison [Tue, 30 Jan 2007 03:57:45 +0000 (03:57 +0000)]
Changed how send_extra_file_list() checks if we have enough future work.

17 years agoImproved a sentence.
Wayne Davison [Tue, 30 Jan 2007 03:37:47 +0000 (03:37 +0000)]
Improved a sentence.

17 years agoSome improvements from Matt.
Wayne Davison [Sun, 28 Jan 2007 06:39:52 +0000 (06:39 +0000)]
Some improvements from Matt.

17 years ago- Fixed a potential hang bug in wait_for_receiver() that could occur
Wayne Davison [Sat, 27 Jan 2007 16:30:33 +0000 (16:30 +0000)]
- Fixed a potential hang bug in wait_for_receiver() that could occur
  if the io_flush() call happened to read the last message from the
  receiver, causing the read_msg_fd() call to deadlock.
- Fixed an error-looping problem when the server-side receiver failed
  to send a message down the error-msg pipe:  we no longer try to send
  a new error about this new failure down the same failing pipe.
- Make sure that we stop any deferring of forwarded messages in the
  generator when we are exiting with an error.

17 years agoChanged the variable "incremental" to "inc_recurse".
Wayne Davison [Sat, 27 Jan 2007 14:56:09 +0000 (14:56 +0000)]
Changed the variable "incremental" to "inc_recurse".

17 years agoImproved the talk of --hard-link improvements.
Wayne Davison [Sat, 27 Jan 2007 14:53:10 +0000 (14:53 +0000)]
Improved the talk of --hard-link improvements.

17 years agoMore extern tweaking.
Wayne Davison [Sat, 27 Jan 2007 14:37:53 +0000 (14:37 +0000)]
More extern tweaking.

17 years agoThe last MSG_DONE from the receiver to the generator is now followed
Wayne Davison [Sat, 27 Jan 2007 14:34:15 +0000 (14:34 +0000)]
The last MSG_DONE from the receiver to the generator is now followed
by the stats.total_read value so that the generator can set its value
to that of the receiver.  This makes log_exit() log the right value
when we're on the server side.

17 years agoGot rid of unused externs.
Wayne Davison [Sat, 27 Jan 2007 14:26:19 +0000 (14:26 +0000)]
Got rid of unused externs.

17 years agoAdded an extra paragraph to the --link-dest option to make it more
Wayne Davison [Tue, 23 Jan 2007 15:34:43 +0000 (15:34 +0000)]
Added an extra paragraph to the --link-dest option to make it more
explicit that it is best used with an empty destination hierarchy.

17 years agoPaul's patch to silence some 64-bit compiler warnings.
Wayne Davison [Tue, 23 Jan 2007 15:24:36 +0000 (15:24 +0000)]
Paul's patch to silence some 64-bit compiler warnings.

17 years agoFixed handling of "redo" items in protocol 30.
Wayne Davison [Sun, 21 Jan 2007 14:51:52 +0000 (14:51 +0000)]
Fixed handling of "redo" items in protocol 30.

17 years ago- Make sure that we can't write via io_flush() when msg_fd_in is
Wayne Davison [Sat, 20 Jan 2007 22:10:14 +0000 (22:10 +0000)]
- Make sure that we can't write via io_flush() when msg_fd_in is
  temporarily set to -1.
- Got rid of the msg2genr message cache.

17 years agoWe need to call msg2sndr_flush() in read_msg_fd() now.
Wayne Davison [Sat, 20 Jan 2007 20:19:24 +0000 (20:19 +0000)]
We need to call msg2sndr_flush() in read_msg_fd() now.

17 years agoMake sure defer_forwarding_messages is set when msg_fd_in gets
Wayne Davison [Sat, 20 Jan 2007 19:56:03 +0000 (19:56 +0000)]
Make sure defer_forwarding_messages is set when msg_fd_in gets
set to -1.

17 years agoFixed some typos Matt found.
Wayne Davison [Sat, 20 Jan 2007 08:42:53 +0000 (08:42 +0000)]
Fixed some typos Matt found.

17 years agoMoved the code that adds each file's length to stats.total_size
Wayne Davison [Wed, 10 Jan 2007 01:49:35 +0000 (01:49 +0000)]
Moved the code that adds each file's length to stats.total_size
so that the delete code doesn't change the value.

17 years agoRemoved a couple items (one complete, one that we don't need).
Wayne Davison [Tue, 9 Jan 2007 20:03:34 +0000 (20:03 +0000)]
Removed a couple items (one complete, one that we don't need).

17 years agoMention that --prune-empty-dirs forces a non-incremental recursive scan.
Wayne Davison [Fri, 29 Dec 2006 14:17:26 +0000 (14:17 +0000)]
Mention that --prune-empty-dirs forces a non-incremental recursive scan.

17 years agoIf prune_empty_dirs is set, don't set incremental.
Wayne Davison [Fri, 29 Dec 2006 14:17:21 +0000 (14:17 +0000)]
If prune_empty_dirs is set, don't set incremental.

17 years agoFixed a typo and improved a sentence.
Wayne Davison [Fri, 29 Dec 2006 01:22:51 +0000 (01:22 +0000)]
Fixed a typo and improved a sentence.

17 years agoAdded a sleep so that the --delete-delay action will always tweak
Wayne Davison [Fri, 29 Dec 2006 00:56:25 +0000 (00:56 +0000)]
Added a sleep so that the --delete-delay action will always tweak
the directory time, and reveal any lack of dir-time touch-up.

17 years ago- Put directory retouching code into a separate function that
Wayne Davison [Fri, 29 Dec 2006 00:55:28 +0000 (00:55 +0000)]
- Put directory retouching code into a separate function that
  is now called for all our touch-up needs.
- Fixed a problem with --delete-delay interfering with the
  directory-time touch-up in incremental mode.

17 years ago- My use of readfd_unbuffered() in read_msg_fd() really needed to be
Wayne Davison [Fri, 29 Dec 2006 00:12:42 +0000 (00:12 +0000)]
- My use of readfd_unbuffered() in read_msg_fd() really needed to be
  readfd() so that the buffer is never partially filled.
- Make sure that msg2genr_flush() does not flush any messages while
  the flist-forwarding is active.
- Changed io_flush() to honor its flush_it_all arg again.

17 years agoAn incremental-recursion transfer can't switch from delete-delay to
Wayne Davison [Thu, 28 Dec 2006 19:02:01 +0000 (19:02 +0000)]
An incremental-recursion transfer can't switch from delete-delay to
delete-after.

17 years agoUse write_ndx() and read_ndx().
Wayne Davison [Thu, 28 Dec 2006 18:49:13 +0000 (18:49 +0000)]
Use write_ndx() and read_ndx().

17 years agoAdded write_ndx() and read_ndx(), functions that allow us to transmit
Wayne Davison [Thu, 28 Dec 2006 18:49:08 +0000 (18:49 +0000)]
Added write_ndx() and read_ndx(), functions that allow us to transmit
fewer bytes when exchanging the file-list index values.

17 years agoOutput a file-list message when verbose and using incremental recursion
Wayne Davison [Thu, 28 Dec 2006 18:43:20 +0000 (18:43 +0000)]
Output a file-list message when verbose and using incremental recursion
mode.

17 years agoMention incremental recursion and change to --delete.
Wayne Davison [Thu, 28 Dec 2006 16:40:24 +0000 (16:40 +0000)]
Mention incremental recursion and change to --delete.

17 years agoDocument the incremental recursion algorithm and the change in the
Wayne Davison [Thu, 28 Dec 2006 16:37:01 +0000 (16:37 +0000)]
Document the incremental recursion algorithm and the change in the
--delete default.

17 years agoRestored the calling of send_file_entry() back to send_file_name()
Wayne Davison [Thu, 28 Dec 2006 15:43:30 +0000 (15:43 +0000)]
Restored the calling of send_file_entry() back to send_file_name()
(since the reason I had separated it no longer exists).

17 years agoAssign the owner and group using F_OWNER() and F_GROUP().
Wayne Davison [Thu, 28 Dec 2006 09:42:48 +0000 (09:42 +0000)]
Assign the owner and group using F_OWNER() and F_GROUP().

17 years ago- Define F_OWNER() and F_GROUP() to be used for assigning the UID and GID.
Wayne Davison [Thu, 28 Dec 2006 09:42:44 +0000 (09:42 +0000)]
- Define F_OWNER() and F_GROUP() to be used for assigning the UID and GID.
- F_UID() is now defined to return a uid_t value.
- F_GID() is now defined to return a gid_t value.

17 years agoRepositioned a misplaced assignment.
Wayne Davison [Thu, 28 Dec 2006 08:57:25 +0000 (08:57 +0000)]
Repositioned a misplaced assignment.

17 years ago- Added a sleep to make sure that the preservation of the mtime on
Wayne Davison [Thu, 28 Dec 2006 07:54:47 +0000 (07:54 +0000)]
- Added a sleep to make sure that the preservation of the mtime on
  implied directories is working.

17 years agoHandle slight differences in the output of protocol 30's incremental mode.
Wayne Davison [Thu, 28 Dec 2006 07:54:44 +0000 (07:54 +0000)]
Handle slight differences in the output of protocol 30's incremental mode.

17 years agoUse --delete-delay instead of --delete-after.
Wayne Davison [Thu, 28 Dec 2006 07:54:41 +0000 (07:54 +0000)]
Use --delete-delay instead of --delete-after.

17 years ago- Made match_uid(), match_gid(), recv_user_name(), and recv_group_name()
Wayne Davison [Thu, 28 Dec 2006 07:54:37 +0000 (07:54 +0000)]
- Made match_uid(), match_gid(), recv_user_name(), and recv_group_name()
  public functions.
- Made add_uid() and add_gid() return the name or NULL.

17 years agoA few minor tweaks to handle the newest variable names.
Wayne Davison [Thu, 28 Dec 2006 07:54:34 +0000 (07:54 +0000)]
A few minor tweaks to handle the newest variable names.

17 years agoHandle the new incremental-recursion mode.
Wayne Davison [Thu, 28 Dec 2006 07:54:31 +0000 (07:54 +0000)]
Handle the new incremental-recursion mode.

17 years ago- Handle the new incremental-recursion mode.
Wayne Davison [Thu, 28 Dec 2006 07:54:27 +0000 (07:54 +0000)]
- Handle the new incremental-recursion mode.
- Changed some function names to make them more consistent.

17 years agoNew functions, variables, and file-list code to support the new
Wayne Davison [Thu, 28 Dec 2006 07:54:23 +0000 (07:54 +0000)]
New functions, variables, and file-list code to support the new
incremental-recursion mode.

17 years agoNew support function: change_local_filter_dir().
Wayne Davison [Thu, 28 Dec 2006 07:54:19 +0000 (07:54 +0000)]
New support function: change_local_filter_dir().

17 years ago- Choose --delete-before or --delete-during depending on protocol version.
Wayne Davison [Thu, 28 Dec 2006 07:54:16 +0000 (07:54 +0000)]
- Choose --delete-before or --delete-during depending on protocol version.
- Set incremental-recursion mode, if possible.
- Protocol 30 gets generator->sender messages enabled.

17 years agoSome new defines for incremental-recursion mode.
Wayne Davison [Thu, 28 Dec 2006 07:54:13 +0000 (07:54 +0000)]
Some new defines for incremental-recursion mode.

17 years ago- Changes to handle new default of --delete-during for --delete.
Wayne Davison [Thu, 28 Dec 2006 07:54:10 +0000 (07:54 +0000)]
- Changes to handle new default of --delete-during for --delete.
- Allow -H to be repeated.

17 years agoOnly append_mode > 0 now indicates option is enabled.
Wayne Davison [Thu, 28 Dec 2006 07:54:07 +0000 (07:54 +0000)]
Only append_mode > 0 now indicates option is enabled.

17 years agoOnly sparse_files > 0 now indicates option is enabled.
Wayne Davison [Thu, 28 Dec 2006 07:54:04 +0000 (07:54 +0000)]
Only sparse_files > 0 now indicates option is enabled.

17 years agoNeaten up use of uid_t/gid_t variable types.
Wayne Davison [Thu, 28 Dec 2006 07:08:13 +0000 (07:08 +0000)]
Neaten up use of uid_t/gid_t variable types.

17 years agoDon't include MATCHFLG_PERISHABLE in CVS-exclude handling unless
Wayne Davison [Thu, 28 Dec 2006 06:27:22 +0000 (06:27 +0000)]
Don't include MATCHFLG_PERISHABLE in CVS-exclude handling unless
we're talking protocol 30 or above.

17 years agoFix the building of mkrounding$(EXEEXT) when building outside the
Wayne Davison [Wed, 27 Dec 2006 21:40:16 +0000 (21:40 +0000)]
Fix the building of mkrounding$(EXEEXT) when building outside the
source directory (provided by Art Haas).

17 years agoMade the int_byte_cnt[] array 75% smaller.
Wayne Davison [Wed, 27 Dec 2006 17:43:51 +0000 (17:43 +0000)]
Made the int_byte_cnt[] array 75% smaller.

17 years agoIgnore all conftest* items, as Matt suggested.
Wayne Davison [Wed, 27 Dec 2006 17:36:57 +0000 (17:36 +0000)]
Ignore all conftest* items, as Matt suggested.

17 years agoFix usage message.
Wayne Davison [Tue, 26 Dec 2006 05:56:38 +0000 (05:56 +0000)]
Fix usage message.

17 years agoTest --only-write-batch option.
Wayne Davison [Tue, 26 Dec 2006 05:29:05 +0000 (05:29 +0000)]
Test --only-write-batch option.

17 years agoCan just test ignore_errors w/o lp_ignore_errors(module_id) now.
Wayne Davison [Mon, 25 Dec 2006 17:49:23 +0000 (17:49 +0000)]
Can just test ignore_errors w/o lp_ignore_errors(module_id) now.

17 years agoSet ignore_errors variable based on lp_ignore_errors(module_id).
Wayne Davison [Mon, 25 Dec 2006 17:49:19 +0000 (17:49 +0000)]
Set ignore_errors variable based on lp_ignore_errors(module_id).

17 years agoImproved the new --pasword-file error message.
Wayne Davison [Sun, 24 Dec 2006 06:13:08 +0000 (06:13 +0000)]
Improved the new --pasword-file error message.

17 years agoFixed a thinko in the last news item.
Wayne Davison [Sun, 24 Dec 2006 05:47:21 +0000 (05:47 +0000)]
Fixed a thinko in the last news item.

17 years agoMention checking of --password-file's use.
Wayne Davison [Sun, 24 Dec 2006 01:30:44 +0000 (01:30 +0000)]
Mention checking of --password-file's use.

17 years agoMake the --password-file option's summary even better.
Wayne Davison [Sun, 24 Dec 2006 01:30:24 +0000 (01:30 +0000)]
Make the --password-file option's summary even better.

17 years agoImproved the docs for the --password-file option.
Wayne Davison [Sun, 24 Dec 2006 00:58:30 +0000 (00:58 +0000)]
Improved the docs for the --password-file option.

17 years agoImproved the summary of the --password-file option.
Wayne Davison [Sun, 24 Dec 2006 00:58:24 +0000 (00:58 +0000)]
Improved the summary of the --password-file option.

17 years agoIf the user specified --password-file without using daemon mode,
Wayne Davison [Sun, 24 Dec 2006 00:58:21 +0000 (00:58 +0000)]
If the user specified --password-file without using daemon mode,
complain and die.

17 years agoMake use of the SHORT_SUM_LENGTH define.
Wayne Davison [Sat, 23 Dec 2006 23:57:16 +0000 (23:57 +0000)]
Make use of the SHORT_SUM_LENGTH define.

17 years agoFixed a problem with the output of %f for non-daemon rsyncs.
Wayne Davison [Sat, 23 Dec 2006 20:48:29 +0000 (20:48 +0000)]
Fixed a problem with the output of %f for non-daemon rsyncs.

17 years agoMention the %f fix.
Wayne Davison [Sat, 23 Dec 2006 20:46:33 +0000 (20:46 +0000)]
Mention the %f fix.

17 years agoFixed the item numbers in the regex comment.
Wayne Davison [Wed, 20 Dec 2006 00:50:17 +0000 (00:50 +0000)]
Fixed the item numbers in the regex comment.

17 years agoCall SIGACTION() instead of signal().
Wayne Davison [Mon, 18 Dec 2006 07:24:24 +0000 (07:24 +0000)]
Call SIGACTION() instead of signal().

17 years agoMoved the write_stream_flags() call from io.c into main.c so that
Wayne Davison [Mon, 18 Dec 2006 06:56:30 +0000 (06:56 +0000)]
Moved the write_stream_flags() call from io.c into main.c so that
it gets called before the transfer starts (thus ensuring that it
can write out un-tweaked values of preserver_[ug]id vars).

17 years agoRenamed flist_extra_cnt to file_extra_cnt.
Wayne Davison [Mon, 18 Dec 2006 06:56:26 +0000 (06:56 +0000)]
Renamed flist_extra_cnt to file_extra_cnt.

17 years agoGot rid of the "tweaked" versions of the uid and gid vars.
Wayne Davison [Mon, 18 Dec 2006 06:56:23 +0000 (06:56 +0000)]
Got rid of the "tweaked" versions of the uid and gid vars.

17 years agoTweaked the output a little.
Wayne Davison [Mon, 18 Dec 2006 06:41:00 +0000 (06:41 +0000)]
Tweaked the output a little.

17 years agoA few more minor tweaks.
Wayne Davison [Sun, 17 Dec 2006 04:42:33 +0000 (04:42 +0000)]
A few more minor tweaks.