Wayne Davison [Tue, 24 Apr 2007 08:11:02 +0000 (08:11 +0000)]
Moved the header info from smb_acls.h into lib/sysacls.h.
Wayne Davison [Tue, 24 Apr 2007 08:00:49 +0000 (08:00 +0000)]
Improved the usage message.
Wayne Davison [Tue, 24 Apr 2007 07:52:45 +0000 (07:52 +0000)]
Added arg-parsing to tls.c.
Wayne Davison [Tue, 24 Apr 2007 07:32:44 +0000 (07:32 +0000)]
Adding the --fake-super option.
Wayne Davison [Mon, 23 Apr 2007 19:54:07 +0000 (19:54 +0000)]
Improved the SUBPROTOCOL_VERSION code a little, and bumped the value
to 2.
Wayne Davison [Mon, 23 Apr 2007 19:03:29 +0000 (19:03 +0000)]
Changed the prerelease-protocol support to use an idiom that will not
slow down the initial version handshake between the two sides.
Wayne Davison [Mon, 23 Apr 2007 18:40:00 +0000 (18:40 +0000)]
No need to reset quiet, since we tell parse_arguments() that it
should prevent quiet from getting set.
Wayne Davison [Sat, 21 Apr 2007 19:46:19 +0000 (19:46 +0000)]
Tweaked --version in a few minor ways, including the mentioning of
the SUBPROTOCOL_VERSION if it is non-zero.
Wayne Davison [Sat, 21 Apr 2007 19:32:46 +0000 (19:32 +0000)]
Batch files need to be written with the new subprotocol value
for protocol 30.
Wayne Davison [Sat, 21 Apr 2007 19:31:54 +0000 (19:31 +0000)]
Mention how many bits our local timestamps support.
Wayne Davison [Sat, 21 Apr 2007 19:27:04 +0000 (19:27 +0000)]
Mention the latest changes that have been made.
Wayne Davison [Sat, 21 Apr 2007 18:40:42 +0000 (18:40 +0000)]
Added a way to exchange a protocol's sub-protocol value. This will be
0 when a protocol goes final, and non-zero for an intermediary CVS
version of a protocol that is in flux. If we find that we're talking
to a CVS version with a different sub-protocol #, we automatically
drop back to the prior protocol that the sides have in common.
Wayne Davison [Fri, 20 Apr 2007 22:40:01 +0000 (22:40 +0000)]
We now allow verbose messages to be sent when forwarding incremental-recursion
file-list data from the receiver to the generator.
Wayne Davison [Fri, 20 Apr 2007 22:39:58 +0000 (22:39 +0000)]
Added a message queue for the receiver->generator messages to handle the case
where the message pipe is being used to forward the file-list data.
Wayne Davison [Fri, 20 Apr 2007 22:39:55 +0000 (22:39 +0000)]
Verify that the modtime value is not being truncated, and complain if it is.
Wayne Davison [Fri, 20 Apr 2007 21:39:08 +0000 (21:39 +0000)]
Check the size of a time_t.
Wayne Davison [Fri, 20 Apr 2007 08:17:06 +0000 (08:17 +0000)]
Call the new {read,write}_varlong30() names for the long-int
functions that are protocol sensitive.
Wayne Davison [Fri, 20 Apr 2007 08:17:03 +0000 (08:17 +0000)]
- Call the new {read,write}_varlong30() names for the long-int
functions that are protocol sensitive.
- Changed the sending of the time value in protocol 30 to support
64-bit values without bloating positive 32-bit values.
Wayne Davison [Fri, 20 Apr 2007 08:16:59 +0000 (08:16 +0000)]
Got rid of the NVAL*() defines.
Wayne Davison [Fri, 20 Apr 2007 08:16:56 +0000 (08:16 +0000)]
Added {read,write}_varlong30() inline functions to use the
right long-int function based on protocol version.
Wayne Davison [Fri, 20 Apr 2007 08:16:53 +0000 (08:16 +0000)]
- Changed the {read,write}_longint() functions into separate
{read,write}_varlong() and {read,write}_longint() functions:
the former handles variable-length transmissions, and the
latter is backward-compatible with older rsync versions.
- Improved the {read,write}_var{int,long}() functions to be
simpler and to use a different byte order.
- The {read_write}_varlong() functions also allow the caller
to specify the minimum number of bytes to send. This allows
time values to be sent efficiently with a 4-byte minimum,
while length values continue to be sent with a (more optimal
for them) 3-byte minimum.
Wayne Davison [Fri, 20 Apr 2007 02:17:58 +0000 (02:17 +0000)]
Changed the *_abbbrevint() functions to *_varint().
Wayne Davison [Wed, 18 Apr 2007 03:30:53 +0000 (03:30 +0000)]
Got rid of protocol-29 check.
Wayne Davison [Wed, 18 Apr 2007 03:23:26 +0000 (03:23 +0000)]
If ssh access is not enabled, use a shell function to test that
we can copy using a spawned rsync process.
Wayne Davison [Wed, 18 Apr 2007 02:33:02 +0000 (02:33 +0000)]
Got rid of ACL's uid/gid iterators in favor of a single function
that converts the uids & gids in a loop.
Wayne Davison [Sat, 14 Apr 2007 07:11:32 +0000 (07:11 +0000)]
Can eliminate the testtmp.* ignore rule now.
Wayne Davison [Sat, 14 Apr 2007 07:10:52 +0000 (07:10 +0000)]
Changed scratchbase from using a "testtmp." name prefix to using a
"testtmp/" name prefix (i.e. using a subdir). This allows me to create
a testtmp as a symlink to a different file system to assist with testing
ACLs and xattrs.
Wayne Davison [Thu, 12 Apr 2007 02:44:41 +0000 (02:44 +0000)]
Improved the description of the --checksum option.
Wayne Davison [Thu, 12 Apr 2007 02:37:31 +0000 (02:37 +0000)]
The check for GCC <= 2 was in the wrong part of an #ifdef sequence.
Wayne Davison [Sat, 7 Apr 2007 19:22:20 +0000 (19:22 +0000)]
Allow a local-server copy to use -X and -A even if a --protocol-version
is forced, which makes some testing idioms easier.
Wayne Davison [Sat, 7 Apr 2007 17:22:25 +0000 (17:22 +0000)]
The improved --xattrs option is landing on the trunk.
Wayne Davison [Sat, 7 Apr 2007 17:22:09 +0000 (17:22 +0000)]
Tweaked an error message and a comment.
Wayne Davison [Sun, 25 Mar 2007 17:01:48 +0000 (17:01 +0000)]
Improved push_dir() error reporting.
Wayne Davison [Wed, 21 Mar 2007 13:51:54 +0000 (13:51 +0000)]
The print now uses a more straight-forward map() instead of a join().
Wayne Davison [Sun, 18 Mar 2007 20:41:51 +0000 (20:41 +0000)]
Use relative directories, and note that the merge code is only
working because it is not yet using --inc-recursion.
Wayne Davison [Sun, 18 Mar 2007 20:40:01 +0000 (20:40 +0000)]
Added a test of a multi-file copy from a nested directory using a
relative source path.
Wayne Davison [Sun, 18 Mar 2007 20:05:24 +0000 (20:05 +0000)]
One more tweak.
Wayne Davison [Sun, 18 Mar 2007 17:35:39 +0000 (17:35 +0000)]
Fixed a multi-file, no-dir, relative copy, such as:
rsync -av lib/*.c /var/tmp/lib
Wayne Davison [Sun, 18 Mar 2007 06:28:51 +0000 (06:28 +0000)]
Put the checksum seed at the end of the checksum2 buffer in md5 mode.
Wayne Davison [Sun, 18 Mar 2007 06:20:07 +0000 (06:20 +0000)]
Made a char* arg const.
Wayne Davison [Sun, 18 Mar 2007 06:00:53 +0000 (06:00 +0000)]
Protocol 30 now uses MD5 checksums instead of MD4.
Wayne Davison [Thu, 15 Mar 2007 23:17:26 +0000 (23:17 +0000)]
In option descriptions, the short form of --copy-dirlinks is -k, not -K.
Wayne Davison [Wed, 14 Mar 2007 00:22:05 +0000 (00:22 +0000)]
I managed to duplicate the hang, so hopefully it's fixed now.
Let's restore the full test suite and find out.
Wayne Davison [Wed, 14 Mar 2007 00:20:44 +0000 (00:20 +0000)]
Fixed more potential hang cases for incremental recursion.
Wayne Davison [Wed, 14 Mar 2007 00:02:39 +0000 (00:02 +0000)]
Next step: allow protocol 30 to be used, but disallow the use
of incremental recursion. If this still avoids the hanging, I
will need to try to track down how inc_recurse can deadlock.
Wayne Davison [Wed, 14 Mar 2007 00:00:01 +0000 (00:00 +0000)]
Added an explicit option that will disallow the use of
incremental recursive mode (and an option to negate that).
Wayne Davison [Mon, 12 Mar 2007 18:05:03 +0000 (18:05 +0000)]
Next step: see if the hang returns with a partial restoration of
protocol 30.
Wayne Davison [Mon, 12 Mar 2007 04:56:15 +0000 (04:56 +0000)]
It looks like some of the compile-farm hosts are hanging on this test,
so let's try some remote-diagnostics (let's try protocol 29 first).
Wayne Davison [Mon, 12 Mar 2007 04:33:30 +0000 (04:33 +0000)]
Changed the sending of device major/minor numbers in protocol 30 to
take fewer protocol bytes and use one less bit in the XMIT_* flags.
Wayne Davison [Sun, 11 Mar 2007 22:02:26 +0000 (22:02 +0000)]
When a hard-linked device is duplicating the data from the prior
device, we need to allocate 2 extra option slots for the device
numbers.
Wayne Davison [Sun, 11 Mar 2007 14:25:00 +0000 (14:25 +0000)]
Don't enable ACLs on darwin until we figure out how they work.
Wayne Davison [Sun, 11 Mar 2007 07:31:17 +0000 (07:31 +0000)]
Leave out two unneeded sys*_fd() functions due to their using
a function & struct that is not available in the rsync code.
Wayne Davison [Sun, 11 Mar 2007 07:21:07 +0000 (07:21 +0000)]
We now compile on systems where ENOTSUP is not defined.
Wayne Davison [Sun, 11 Mar 2007 07:13:11 +0000 (07:13 +0000)]
Leave SUPPORT_ACLS undefined instead of giving it a 0 value.
Wayne Davison [Sun, 11 Mar 2007 06:50:48 +0000 (06:50 +0000)]
Silence a compiler warning about a printf() %d mismatch.
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.
Wayne Davison [Sun, 11 Mar 2007 05:59:46 +0000 (05:59 +0000)]
Use the abbrevint30 routines in a few more places.
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.
Wayne Davison [Sun, 11 Mar 2007 05:43:55 +0000 (05:43 +0000)]
Moved the new static internal functions from h to io.h.
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.
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).
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.
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.
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.
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.
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.
Wayne Davison [Sat, 17 Feb 2007 17:05:22 +0000 (17:05 +0000)]
Mention a couple more changes.
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.
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.
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.
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!)
Wayne Davison [Sun, 4 Feb 2007 14:54:58 +0000 (14:54 +0000)]
Further modifications to the copyright comment section.
Wayne Davison [Sat, 3 Feb 2007 22:46:57 +0000 (22:46 +0000)]
Added a license comment to the top of the file.
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.
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().
Wayne Davison [Wed, 31 Jan 2007 21:46:49 +0000 (21:46 +0000)]
Mention the year 2007 in the copyright declarations.
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.
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.
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).
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.
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.
Wayne Davison [Tue, 30 Jan 2007 03:37:47 +0000 (03:37 +0000)]
Improved a sentence.
Wayne Davison [Sun, 28 Jan 2007 06:39:52 +0000 (06:39 +0000)]
Some improvements from Matt.
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.
Wayne Davison [Sat, 27 Jan 2007 14:56:09 +0000 (14:56 +0000)]
Changed the variable "incremental" to "inc_recurse".
Wayne Davison [Sat, 27 Jan 2007 14:53:10 +0000 (14:53 +0000)]
Improved the talk of --hard-link improvements.
Wayne Davison [Sat, 27 Jan 2007 14:37:53 +0000 (14:37 +0000)]
More extern tweaking.
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.
Wayne Davison [Sat, 27 Jan 2007 14:26:19 +0000 (14:26 +0000)]
Got rid of unused externs.
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.
Wayne Davison [Tue, 23 Jan 2007 15:24:36 +0000 (15:24 +0000)]
Paul's patch to silence some 64-bit compiler warnings.
Wayne Davison [Sun, 21 Jan 2007 14:51:52 +0000 (14:51 +0000)]
Fixed handling of "redo" items in protocol 30.
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.
Wayne Davison [Sat, 20 Jan 2007 20:19:24 +0000 (20:19 +0000)]
We need to call msg2sndr_flush() in read_msg_fd() now.
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.
Wayne Davison [Sat, 20 Jan 2007 08:42:53 +0000 (08:42 +0000)]
Fixed some typos Matt found.
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.
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).
Wayne Davison [Fri, 29 Dec 2006 14:17:26 +0000 (14:17 +0000)]
Mention that --prune-empty-dirs forces a non-incremental recursive scan.
Wayne Davison [Fri, 29 Dec 2006 14:17:21 +0000 (14:17 +0000)]
If prune_empty_dirs is set, don't set incremental.