Wayne Davison [Tue, 16 Oct 2007 15:10:12 +0000 (15:10 +0000)]
- Send an 'i' in the -e arg to the server if we can support inc_recurse.
- Got rid of some unneeded blocking_io value twiddling.
- Send --use-qsort to the server if it was specified.
Wayne Davison [Tue, 16 Oct 2007 15:10:09 +0000 (15:10 +0000)]
- Moved the arg-checking relating into set_allow_inc_recurse() and
call it when the server is in setup_protocol(). The function sets
allow_inc_recurse to 0 if some options won't allow us to support
an incremental-recursive transfer.
- The server now checks for an 'i' in the -e option from the client
and zeros out allow_inc_recurse if not found.
- The server reports its inc_recurse determination back to the client.
- The client sets inc_recurse based on the value it gets from the server.
Wayne Davison [Tue, 16 Oct 2007 04:08:18 +0000 (04:08 +0000)]
- Send a flag from the client to the server to indicate if the protocol
is going to run in inc_recurse mode or not.
- Verify that the options we received (as a server or as a batch-reader)
are compatible with the requested inc_recurse mode.
Wayne Davison [Mon, 8 Oct 2007 18:02:11 +0000 (18:02 +0000)]
- Use the new *_CONTENT_DIR flag names (was *_XFER_DIR).
- Check the FLAG_IMPLIED_DIR flag to find implied dirs.
- Expect flagged implied dirs for all protocol 30 transfers.
Wayne Davison [Mon, 8 Oct 2007 18:02:07 +0000 (18:02 +0000)]
- Mark implied dirs with FLAG_IMPLIED_DIR.
- Use the new *_CONTENT_DIR flag names (was *_XFER_DIR).
- Send implied dirs with XMIT_TOP_DIR | XMIT_NO_CONTENT_DIR.
- All protocol 30 transfers send flagged implied dirs.
Wayne Davison [Sun, 7 Oct 2007 20:43:49 +0000 (20:43 +0000)]
Reposition the call to setup_iconv() so that it gets called only once
is a local_server copy, and so that arg-parsing code doesn't interfere
with the sending of a remote charset value.
Wayne Davison [Sun, 7 Oct 2007 07:18:49 +0000 (07:18 +0000)]
Improved on the list-only fix and on the other similar checks that want
to ignore implied dirs that are actually present in the file list
when inc_recurse is active and --no-implied-dirs was specified.
Wayne Davison [Sun, 7 Oct 2007 07:18:45 +0000 (07:18 +0000)]
- Simplified the code in recv_file_entry() for protocol 30.
- Simplified the flag setting in send1extra since we know that
recurse is set.
- Make sure that FLAG_XFER_DIR is unset for a non-dot-dir when
recurse is not set.
- The --relative code wasn't setting is_dot_dir enough.
Wayne Davison [Mon, 1 Oct 2007 02:25:54 +0000 (02:25 +0000)]
- Set config_file to a default filename if it is NULL.
- Changed create_pid_file() to fail if the pidfile already exists,
which makes the daemon exit with an error.
- Output errors about a failure to open the config file or the lock
file to (a still open) stderr.
- We now notice (and complain) if fork() fails.
Wayne Davison [Sun, 30 Sep 2007 07:14:16 +0000 (07:14 +0000)]
Allow additional remote args to contain an identical hostname instead
of requiring it to be empty. This allows for the easy use of braces:
rsync -av host:file{1,2} /dest/
Wayne Davison [Sun, 30 Sep 2007 06:57:07 +0000 (06:57 +0000)]
- Moved become_daemon() here from socket.c and made it static.
- Call lp_load() before we call become_daemon().
- Output an error to stderr if we fail to open/parse the config file.
- Added a create_pid_file() static function and call it earlier in
the startup sequence.
Wayne Davison [Sun, 23 Sep 2007 15:46:11 +0000 (15:46 +0000)]
- Don't allow -x to drop implied directories.
- Improved the code that tries to avoid scanning the same dir
twice in a row to not drop any relnamecache entries.