rsync/rsync.git
12 years agoTweak the noop_io_until_death() timeout and comment it.
Wayne Davison [Sun, 15 Nov 2009 07:05:52 +0000 (23:05 -0800)]
Tweak the noop_io_until_death() timeout and comment it.

12 years agoImproved a couple comments and added some "else" optimizations.
Wayne Davison [Sat, 14 Nov 2009 18:01:13 +0000 (10:01 -0800)]
Improved a couple comments and added some "else" optimizations.

12 years agoNo need to check MIN_FILECNT_LOOKAHEAD w/extra_flist_sending_enabled.
Wayne Davison [Sat, 14 Nov 2009 17:58:25 +0000 (09:58 -0800)]
No need to check MIN_FILECNT_LOOKAHEAD w/extra_flist_sending_enabled.

12 years agoMake the two "wrap-bytes" sections simpler and more similar.
Wayne Davison [Sat, 14 Nov 2009 17:55:17 +0000 (09:55 -0800)]
Make the two "wrap-bytes" sections simpler and more similar.

12 years agoPrefer send_msg_int() over send_msg() for better debug output.
Wayne Davison [Sat, 14 Nov 2009 17:52:40 +0000 (09:52 -0800)]
Prefer send_msg_int() over send_msg() for better debug output.

12 years agoTweaked sizing checks in perform_io().
Wayne Davison [Sat, 14 Nov 2009 17:51:26 +0000 (09:51 -0800)]
Tweaked sizing checks in perform_io().

12 years agoFixed the buffer-has-space check in write_buf().
Wayne Davison [Sat, 14 Nov 2009 17:43:02 +0000 (09:43 -0800)]
Fixed the buffer-has-space check in write_buf().

12 years agoMake --bwlimit take the same size suffixes as the --max-size option
Wayne Davison [Fri, 13 Nov 2009 07:55:21 +0000 (23:55 -0800)]
Make --bwlimit take the same size suffixes as the --max-size option
(while keeping it backward compatible). Improve --bwlimit docs.

12 years agoFix the daemon test when running it as root.
Wayne Davison [Fri, 13 Nov 2009 06:05:45 +0000 (22:05 -0800)]
Fix the daemon test when running it as root.

12 years agoMake use of seteuid() determined by configure.
Wayne Davison [Mon, 9 Nov 2009 04:17:02 +0000 (20:17 -0800)]
Make use of seteuid() determined by configure.

12 years agoChange an RERR_* to RERR_FILEIO.
Wayne Davison [Sun, 8 Nov 2009 19:51:02 +0000 (11:51 -0800)]
Change an RERR_* to RERR_FILEIO.

12 years agoMention who got the unknown logcode.
Wayne Davison [Sun, 8 Nov 2009 19:50:43 +0000 (11:50 -0800)]
Mention who got the unknown logcode.

12 years agoMore improvements for abnormal exits.
Wayne Davison [Sun, 8 Nov 2009 19:43:16 +0000 (11:43 -0800)]
More improvements for abnormal exits.

12 years agoSave first filename and linenum in case exit_cleanup() recurses.
Wayne Davison [Sun, 8 Nov 2009 08:12:33 +0000 (00:12 -0800)]
Save first filename and linenum in case exit_cleanup() recurses.

12 years agoTry to silence some warnings from "checker".
Wayne Davison [Sat, 7 Nov 2009 17:46:20 +0000 (09:46 -0800)]
Try to silence some warnings from "checker".

12 years agoMention the error improvements.
Wayne Davison [Sat, 7 Nov 2009 17:46:01 +0000 (09:46 -0800)]
Mention the error improvements.

12 years agoGive noop_io_until_death() a time limit.
Wayne Davison [Sat, 7 Nov 2009 17:45:43 +0000 (09:45 -0800)]
Give noop_io_until_death() a time limit.

12 years agoAdded notifications about error-exit values:
Wayne Davison [Sat, 7 Nov 2009 08:39:50 +0000 (00:39 -0800)]
Added notifications about error-exit values:

- The receiver notifies the generator if it is exiting with an error,
  and then, if it is a server, waits around for the generator to die.
  This ensures that the client side has time to read the error.
- The generator or sender will notifiy the other side of the transfer of
  an error-exit value if protocol 31 is in effect.  This will get rid of
  some "connection unexpectedly closed" errors that are really expected
  events due to a fatal exit on the other side.

12 years agoFix MSG_IO_TIMEOUT when the daemon is the receiver.
Wayne Davison [Sun, 1 Nov 2009 21:57:17 +0000 (13:57 -0800)]
Fix MSG_IO_TIMEOUT when the daemon is the receiver.

12 years agoA daemon treats --msgs2stderr as "output only to the log, not the user".
Wayne Davison [Sun, 1 Nov 2009 21:36:02 +0000 (13:36 -0800)]
A daemon treats --msgs2stderr as "output only to the log, not the user".

12 years agoMake sure rwrite() can handle any logcode value in --msgs2stderr mode.
Wayne Davison [Sun, 1 Nov 2009 21:26:15 +0000 (13:26 -0800)]
Make sure rwrite() can handle any logcode value in --msgs2stderr mode.

12 years agoFix a hang when dealing with really large numbers of files
Wayne Davison [Fri, 30 Oct 2009 00:35:50 +0000 (17:35 -0700)]
Fix a hang when dealing with really large numbers of files
in an incremental recursion scan.

12 years agoGet rid of some unneeded externs.
Wayne Davison [Tue, 27 Oct 2009 19:38:30 +0000 (12:38 -0700)]
Get rid of some unneeded externs.

12 years agoChange the daemon-timeout conveyance into a protocol-31 message.
Wayne Davison [Tue, 27 Oct 2009 19:34:39 +0000 (12:34 -0700)]
Change the daemon-timeout conveyance into a protocol-31 message.

12 years agoFix %b and %c so that they count per-transfer bytes again.
Wayne Davison [Mon, 26 Oct 2009 05:22:03 +0000 (22:22 -0700)]
Fix %b and %c so that they count per-transfer bytes again.

12 years agoEnhance log_format_has() to understand the "'" modifier.
Wayne Davison [Mon, 26 Oct 2009 04:24:48 +0000 (21:24 -0700)]
Enhance log_format_has() to understand the "'" modifier.

12 years agoUpdated NEWS with some of the recent changes.
Wayne Davison [Sun, 25 Oct 2009 20:51:09 +0000 (13:51 -0700)]
Updated NEWS with some of the recent changes.

12 years agoA few more --files-from fixes, and an enhanced testsuite for it.
Wayne Davison [Sat, 24 Oct 2009 19:39:58 +0000 (12:39 -0700)]
A few more --files-from fixes, and an enhanced testsuite for it.

12 years agoAdd a check30 target.
Wayne Davison [Sat, 24 Oct 2009 19:37:26 +0000 (12:37 -0700)]
Add a check30 target.

12 years agoMake use of $suitedir.
Wayne Davison [Sat, 24 Oct 2009 18:42:29 +0000 (11:42 -0700)]
Make use of $suitedir.

12 years agoFixed some backward-compatibility issues with --files-from.
Wayne Davison [Sat, 24 Oct 2009 18:12:37 +0000 (11:12 -0700)]
Fixed some backward-compatibility issues with --files-from.

12 years agoMoved some --iconv text that was supposed to be in --files-from.
Wayne Davison [Sat, 24 Oct 2009 07:23:21 +0000 (00:23 -0700)]
Moved some --iconv text that was supposed to be in --files-from.

12 years agoFixed a couple iconv loops to properly handle incomplete chars
Wayne Davison [Sat, 24 Oct 2009 07:15:40 +0000 (00:15 -0700)]
Fixed a couple iconv loops to properly handle incomplete chars
that span two reads.

12 years agoMove free_xbuf() into ifuncs.h.
Wayne Davison [Sat, 24 Oct 2009 05:55:06 +0000 (22:55 -0700)]
Move free_xbuf() into ifuncs.h.

12 years agoGive iconvbufs() an ICB_INIT flag.
Wayne Davison [Sat, 24 Oct 2009 05:51:29 +0000 (22:51 -0700)]
Give iconvbufs() an ICB_INIT flag.

12 years agoA protocol 31 daemon will inform the client about its timeout setting
Wayne Davison [Tue, 20 Oct 2009 22:07:51 +0000 (15:07 -0700)]
A protocol 31 daemon will inform the client about its timeout setting
so that the client will be able to cooperate with keep-alive.

12 years agoMake sure daemon's io_timeout is used as a maximum value.
Wayne Davison [Tue, 20 Oct 2009 22:05:15 +0000 (15:05 -0700)]
Make sure daemon's io_timeout is used as a maximum value.

12 years agoMoved a few group-related functions with some minor tweaks;
Wayne Davison [Mon, 19 Oct 2009 18:21:55 +0000 (11:21 -0700)]
Moved a few group-related functions with some minor tweaks;

12 years agoSilence some rprintf() size_t warnings.
Wayne Davison [Mon, 19 Oct 2009 15:06:21 +0000 (08:06 -0700)]
Silence some rprintf() size_t warnings.

12 years agoAllow %VAR% environment references in daemon-config parameter values.
Wayne Davison [Sat, 17 Oct 2009 22:53:25 +0000 (15:53 -0700)]
Allow %VAR% environment references in daemon-config parameter values.

12 years agoCall seteuid() when calling setuid().
Wayne Davison [Sat, 17 Oct 2009 22:03:11 +0000 (15:03 -0700)]
Call seteuid() when calling setuid().

12 years agoFix some man page problems Scott Kostyshak pointed out.
Wayne Davison [Sat, 17 Oct 2009 18:06:49 +0000 (11:06 -0700)]
Fix some man page problems Scott Kostyshak pointed out.

12 years agoFix check for an empty output buffer and limit to flist_eof.
Wayne Davison [Sat, 17 Oct 2009 16:09:27 +0000 (09:09 -0700)]
Fix check for an empty output buffer and limit to flist_eof.

12 years agoA major overhaul of I/O routines, creating perform_io().
Wayne Davison [Sat, 17 Oct 2009 05:39:21 +0000 (22:39 -0700)]
A major overhaul of I/O routines, creating perform_io().

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).

12 years agoAvoid type-punned compiler warnings for the byteorder.h macros
Wayne Davison [Wed, 14 Oct 2009 04:07:46 +0000 (21:07 -0700)]
Avoid type-punned compiler warnings for the byteorder.h macros
by using inline functions for the 4-char <-> uint32 conversions.

12 years agoAvoid calling send_extra_file_list() when we shouldn't.
Wayne Davison [Tue, 13 Oct 2009 17:45:23 +0000 (10:45 -0700)]
Avoid calling send_extra_file_list() when we shouldn't.

12 years agoAvoid stopping multiplexed out over the message fd.
Wayne Davison [Mon, 12 Oct 2009 16:03:42 +0000 (09:03 -0700)]
Avoid stopping multiplexed out over the message fd.
Use simpler multiplexed-out stopping method.
Make sure we can't false-match a socket fd.

12 years agoChange the msg pipe to use a real multiplexed IO mode
Wayne Davison [Tue, 15 Sep 2009 23:12:24 +0000 (16:12 -0700)]
Change the msg pipe to use a real multiplexed IO mode
for the data that goes from the receiver to the generator.

12 years agoBetter mask handling, including some changes to help solaris.
Wayne Davison [Sat, 12 Sep 2009 16:40:31 +0000 (09:40 -0700)]
Better mask handling, including some changes to help solaris.

12 years agoPass "new_mode" to set_acl() and change its return values.
Wayne Davison [Sat, 12 Sep 2009 16:27:07 +0000 (09:27 -0700)]
Pass "new_mode" to set_acl() and change its return values.

12 years agoPut file descriptor arg at the start of the arg list for consistency.
Wayne Davison [Sat, 12 Sep 2009 16:13:38 +0000 (09:13 -0700)]
Put file descriptor arg at the start of the arg list for consistency.

12 years agoImprove the "--delete does not work without -r or -d" message.
Wayne Davison [Mon, 7 Sep 2009 21:22:59 +0000 (14:22 -0700)]
Improve the "--delete does not work without -r or -d" message.

12 years agoAdd support for transferring & setting nsec time values.
Wayne Davison [Mon, 7 Sep 2009 20:49:52 +0000 (13:49 -0700)]
Add support for transferring & setting nsec time values.

12 years agoAlways use lutimes() if it is available.
Wayne Davison [Mon, 7 Sep 2009 20:45:33 +0000 (13:45 -0700)]
Always use lutimes() if it is available.

12 years agoAdd a few new "dont compress" suffixes and improve the docs.
Wayne Davison [Sat, 5 Sep 2009 17:26:51 +0000 (10:26 -0700)]
Add a few new "dont compress" suffixes and improve the docs.

12 years agoImprove error handling and get rid of a lingering fprintf().
Wayne Davison [Sat, 5 Sep 2009 17:25:42 +0000 (10:25 -0700)]
Improve error handling and get rid of a lingering fprintf().

12 years agoFix daemon's conveyance of io_error value from sender.
Wayne Davison [Sat, 5 Sep 2009 16:40:53 +0000 (09:40 -0700)]
Fix daemon's conveyance of io_error value from sender.

12 years agoAvoid an dry-run error trying to stat a prior hard-link
Wayne Davison [Sat, 5 Sep 2009 15:16:22 +0000 (08:16 -0700)]
Avoid an dry-run error trying to stat a prior hard-link
file that hasn't really been created.

12 years agoNeed to use O_RDONLY in solaris sys_lremovexattr().
Wayne Davison [Thu, 3 Sep 2009 22:25:55 +0000 (15:25 -0700)]
Need to use O_RDONLY in solaris sys_lremovexattr().

12 years agoHave --fake-super turn a symlink into a file when
Wayne Davison [Wed, 2 Sep 2009 16:06:29 +0000 (09:06 -0700)]
Have --fake-super turn a symlink into a file when
NO_SYMLINK_XATTRS is defined.

12 years agoDefine and use "our_gid" variable.
Wayne Davison [Wed, 2 Sep 2009 15:56:34 +0000 (08:56 -0700)]
Define and use "our_gid" variable.

12 years agoBetter compiling if SUPPORT_LINKS is not defined.
Wayne Davison [Wed, 2 Sep 2009 15:53:40 +0000 (08:53 -0700)]
Better compiling if SUPPORT_LINKS is not defined.

12 years agoRebuild proto.h if config.h changes.
Wayne Davison [Wed, 2 Sep 2009 15:52:41 +0000 (08:52 -0700)]
Rebuild proto.h if config.h changes.

12 years agoFix attropen() flags for writing an xattr on solaris.
Wayne Davison [Wed, 2 Sep 2009 14:36:57 +0000 (07:36 -0700)]
Fix attropen() flags for writing an xattr on solaris.

12 years agoFix read_xattr() for solaris.
Wayne Davison [Tue, 1 Sep 2009 19:11:32 +0000 (12:11 -0700)]
Fix read_xattr() for solaris.

12 years agoCreate non-transferred files in a more atomic manner:
Wayne Davison [Sat, 29 Aug 2009 18:27:40 +0000 (11:27 -0700)]
Create non-transferred files in a more atomic manner:
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.

12 years agoFix the chmod-temp-dir test if /var/tmp doesn't exist.
Wayne Davison [Sat, 22 Aug 2009 16:33:55 +0000 (09:33 -0700)]
Fix the chmod-temp-dir test if /var/tmp doesn't exist.
Fixes bug 6569.

12 years agoHave the sender use dead time to pad out the file list.
Wayne Davison [Sat, 22 Aug 2009 15:15:26 +0000 (08:15 -0700)]
Have the sender use dead time to pad out the file list.

12 years agoAllow Solaris sys_llistxattr() to return the list length when size == 0.
Wayne Davison [Sat, 15 Aug 2009 13:40:12 +0000 (06:40 -0700)]
Allow Solaris sys_llistxattr() to return the list length when size == 0.

12 years agoFix some variable references.
Wayne Davison [Sat, 15 Aug 2009 13:27:19 +0000 (06:27 -0700)]
Fix some variable references.

12 years agoFix a bogus free in uncache_tmp_xattrs().
Wayne Davison [Fri, 14 Aug 2009 14:04:24 +0000 (07:04 -0700)]
Fix a bogus free in uncache_tmp_xattrs().

12 years agoSome improvements to the solaris xattr routines.
Wayne Davison [Thu, 13 Aug 2009 15:02:00 +0000 (08:02 -0700)]
Some improvements to the solaris xattr routines.
Inspired by the patch to bug 6633.

13 years agoFix a warning about a %d not getting an int (on some platforms).
Wayne Davison [Mon, 10 Aug 2009 16:24:53 +0000 (09:24 -0700)]
Fix a warning about a %d not getting an int (on some platforms).

13 years agoInitial version of xattr routines for Solaris.
Wayne Davison [Sat, 8 Aug 2009 20:27:58 +0000 (13:27 -0700)]
Initial version of xattr routines for Solaris.

13 years agoAdd conditional support for excluding types of files from xattr ops.
Wayne Davison [Sat, 8 Aug 2009 20:21:26 +0000 (13:21 -0700)]
Add conditional support for excluding types of files from xattr ops.

13 years agoGet section reference right. Fixes bug #6573.
Wayne Davison [Sat, 1 Aug 2009 18:28:45 +0000 (11:28 -0700)]
Get section reference right.  Fixes bug #6573.

13 years agoAdded solaris IPv6 checking to configure. Fixes #6438.
Wayne Davison [Fri, 5 Jun 2009 19:56:15 +0000 (12:56 -0700)]
Added solaris IPv6 checking to configure.  Fixes #6438.
Patch from Tim Spriggs.

13 years agoMention that --whole-file is not the default for a local transfer when
Wayne Davison [Mon, 1 Jun 2009 16:09:09 +0000 (09:09 -0700)]
Mention that --whole-file is not the default for a local transfer when
writing a batch file.

13 years agoAdding a new script that creates a local patch/* branch
Wayne Davison [Sat, 23 May 2009 20:40:34 +0000 (13:40 -0700)]
Adding a new script that creates a local patch/* branch
for each file given on the command-line.

13 years agoImproved the usage output.
Wayne Davison [Sat, 23 May 2009 20:40:23 +0000 (13:40 -0700)]
Improved the usage output.

13 years agoDetermine the master's commit hash and note it in each patch
Wayne Davison [Sat, 23 May 2009 20:12:01 +0000 (13:12 -0700)]
Determine the master's commit hash and note it in each patch
that is based on the master in the new "based-on:" line.

13 years agoMention some recent changes.
Wayne Davison [Sat, 23 May 2009 18:45:17 +0000 (11:45 -0700)]
Mention some recent changes.

13 years agoRefactorings to the filter code, most notably:
Matt McCutchen [Sat, 23 May 2009 17:59:14 +0000 (10:59 -0700)]
Refactorings to the filter code, most notably:

- Improve function name: parse_rule -> parse_filter_str (to make the
  similarity with parse_filter_file clearer, and better indicate that
  it can parse multiple rules when FILTRULE_WORD_SPLIT is specified).

- In preparation for rule prefixes containing information beyond the
  rflags, change the code to pass around a full "template" filter_rule
  instead of just rflags.  Callers of parse_filter_{str,file} that want
  to specify only rflags can use rule_template(rflags) .

- Remove the MODIFIERS_* strings and instead hand-code the condition
  under which each modifier is valid.  This should make it easier to
  see that the conditions are correct.

- Tighten up default modifiers on merge rules:
  - Disallow "!" because it isn't useful.
  - If the merge rule specifies a side via "s" or "r", the rules in the
    file cannot also specify a side via "s", "r", "hide", etc.

[Patch was changed by Wayne a bit prior to application.]

13 years agoImproved a couple variable names.
Wayne Davison [Sat, 23 May 2009 17:08:17 +0000 (10:08 -0700)]
Improved a couple variable names.

13 years agoUse typedefs for the filter structures.
Wayne Davison [Sat, 23 May 2009 15:50:42 +0000 (08:50 -0700)]
Use typedefs for the filter structures.

13 years agoChange filter MATCHFLGs to FILTRULEs.
Wayne Davison [Sat, 23 May 2009 15:01:43 +0000 (08:01 -0700)]
Change filter MATCHFLGs to FILTRULEs.

13 years agoSupport an older AIX system that doesn't have ENOTSUP.
Wayne Davison [Thu, 14 May 2009 18:23:38 +0000 (11:23 -0700)]
Support an older AIX system that doesn't have ENOTSUP.

13 years agoSwitch from inet_aton() to inet_pton() (since we supply a compatibility
Wayne Davison [Thu, 14 May 2009 18:22:37 +0000 (11:22 -0700)]
Switch from inet_aton() to inet_pton() (since we supply a compatibility
function for the latter, it will always exist).

13 years agoAdding release info for 3.0.6 to the trunk.
Wayne Davison [Fri, 8 May 2009 18:13:37 +0000 (11:13 -0700)]
Adding release info for 3.0.6 to the trunk.

13 years agoFix typo pointed out by Chris Pepper.
Wayne Davison [Thu, 7 May 2009 15:02:17 +0000 (08:02 -0700)]
Fix typo pointed out by Chris Pepper.

13 years agoEnhance name_to_{u,g}id() to optionally parse numbers and rename
Wayne Davison [Thu, 7 May 2009 14:34:42 +0000 (07:34 -0700)]
Enhance name_to_{u,g}id() to optionally parse numbers and rename
to {user,group}_to_*().  Based on a patch by Matt McCutchen.

13 years agoMove the description of include/exclude modifiers to a better place
Matt McCutchen [Tue, 5 May 2009 02:30:47 +0000 (22:30 -0400)]
Move the description of include/exclude modifiers to a better place
in the man page.

13 years agoClarify which options are transfer rules, and what that means.
Wayne Davison [Mon, 27 Apr 2009 14:21:56 +0000 (07:21 -0700)]
Clarify which options are transfer rules, and what that means.

13 years agoChange sending/receiving/storing of the rdev value for special files.
Wayne Davison [Sun, 26 Apr 2009 14:28:55 +0000 (07:28 -0700)]
Change sending/receiving/storing of the rdev value for special files.
Since the value is not needed, protocol 31 no longer sends it, while
older protocols are optimized so the sender just sends a valid rdev
value as efficiently as possible.  The receiver no longer caches an
rdev value for special files, and the generator will always pass a 0
rdev value to do_mknod() for special files. Fixes bug #6280.

13 years agoUse upper-case HLINK in a --debug setting to avoid a really weird bug
Wayne Davison [Tue, 14 Apr 2009 04:07:12 +0000 (21:07 -0700)]
Use upper-case HLINK in a --debug setting to avoid a really weird bug
in the strncasecmp() of OpenSUSE 10.2 (x86_64).

13 years agoSwitch to upper-case in the {debug,info}_verbosity arrays.
Wayne Davison [Mon, 13 Apr 2009 14:37:49 +0000 (07:37 -0700)]
Switch to upper-case in the {debug,info}_verbosity arrays.

13 years agoChanged the commands used to "make gen" without any stoppage.
Wayne Davison [Sun, 12 Apr 2009 22:18:33 +0000 (15:18 -0700)]
Changed the commands used to "make gen" without any stoppage.

13 years agoDon't allow --remove-s*-files with --read-batch.
Wayne Davison [Sun, 12 Apr 2009 19:57:31 +0000 (12:57 -0700)]
Don't allow --remove-s*-files with --read-batch.

13 years agoFixed the use of --xattrs with --only-write-batch.
Wayne Davison [Sun, 12 Apr 2009 19:51:20 +0000 (12:51 -0700)]
Fixed the use of --xattrs with --only-write-batch.

13 years agoThe suffix must be non-empty if the backup-dir is the same as the dest
Wayne Davison [Sun, 12 Apr 2009 00:31:13 +0000 (17:31 -0700)]
The suffix must be non-empty if the backup-dir is the same as the dest
dir.