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.
Wayne Davison [Fri, 29 Dec 2006 01:22:51 +0000 (01:22 +0000)]
Fixed a typo and improved a sentence.
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.
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.
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.
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.
Wayne Davison [Thu, 28 Dec 2006 18:49:13 +0000 (18:49 +0000)]
Use write_ndx() and read_ndx().
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.
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.
Wayne Davison [Thu, 28 Dec 2006 16:40:24 +0000 (16:40 +0000)]
Mention incremental recursion and change to --delete.
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.
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).
Wayne Davison [Thu, 28 Dec 2006 09:42:48 +0000 (09:42 +0000)]
Assign the owner and group using F_OWNER() and F_GROUP().
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.
Wayne Davison [Thu, 28 Dec 2006 08:57:25 +0000 (08:57 +0000)]
Repositioned a misplaced assignment.
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.
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.
Wayne Davison [Thu, 28 Dec 2006 07:54:41 +0000 (07:54 +0000)]
Use --delete-delay instead of --delete-after.
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.
Wayne Davison [Thu, 28 Dec 2006 07:54:34 +0000 (07:54 +0000)]
A few minor tweaks to handle the newest variable names.
Wayne Davison [Thu, 28 Dec 2006 07:54:31 +0000 (07:54 +0000)]
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.
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.
Wayne Davison [Thu, 28 Dec 2006 07:54:19 +0000 (07:54 +0000)]
New support function: change_local_filter_dir().
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.
Wayne Davison [Thu, 28 Dec 2006 07:54:13 +0000 (07:54 +0000)]
Some new defines for incremental-recursion mode.
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.
Wayne Davison [Thu, 28 Dec 2006 07:54:07 +0000 (07:54 +0000)]
Only append_mode > 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.
Wayne Davison [Thu, 28 Dec 2006 07:08:13 +0000 (07:08 +0000)]
Neaten up use of uid_t/gid_t variable types.
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.
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).
Wayne Davison [Wed, 27 Dec 2006 17:43:51 +0000 (17:43 +0000)]
Made the int_byte_cnt[] array 75% smaller.
Wayne Davison [Wed, 27 Dec 2006 17:36:57 +0000 (17:36 +0000)]
Ignore all conftest* items, as Matt suggested.
Wayne Davison [Tue, 26 Dec 2006 05:56:38 +0000 (05:56 +0000)]
Fix usage message.
Wayne Davison [Tue, 26 Dec 2006 05:29:05 +0000 (05:29 +0000)]
Test --only-write-batch option.
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.
Wayne Davison [Mon, 25 Dec 2006 17:49:19 +0000 (17:49 +0000)]
Set ignore_errors variable based on lp_ignore_errors(module_id).
Wayne Davison [Sun, 24 Dec 2006 06:13:08 +0000 (06:13 +0000)]
Improved the new --pasword-file error message.
Wayne Davison [Sun, 24 Dec 2006 05:47:21 +0000 (05:47 +0000)]
Fixed a thinko in the last news item.
Wayne Davison [Sun, 24 Dec 2006 01:30:44 +0000 (01:30 +0000)]
Mention checking of --password-file's use.
Wayne Davison [Sun, 24 Dec 2006 01:30:24 +0000 (01:30 +0000)]
Make the --password-file option's summary even better.
Wayne Davison [Sun, 24 Dec 2006 00:58:30 +0000 (00:58 +0000)]
Improved the docs for 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.
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.
Wayne Davison [Sat, 23 Dec 2006 23:57:16 +0000 (23:57 +0000)]
Make use of the SHORT_SUM_LENGTH define.
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.
Wayne Davison [Sat, 23 Dec 2006 20:46:33 +0000 (20:46 +0000)]
Mention the %f fix.
Wayne Davison [Wed, 20 Dec 2006 00:50:17 +0000 (00:50 +0000)]
Fixed the item numbers in the regex comment.
Wayne Davison [Mon, 18 Dec 2006 07:24:24 +0000 (07:24 +0000)]
Call SIGACTION() instead of signal().
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).
Wayne Davison [Mon, 18 Dec 2006 06:56:26 +0000 (06:56 +0000)]
Renamed flist_extra_cnt to file_extra_cnt.
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.
Wayne Davison [Mon, 18 Dec 2006 06:41:00 +0000 (06:41 +0000)]
Tweaked the output a little.
Wayne Davison [Sun, 17 Dec 2006 04:42:33 +0000 (04:42 +0000)]
A few more minor tweaks.
Wayne Davison [Sun, 17 Dec 2006 02:05:11 +0000 (02:05 +0000)]
- We now define int16 and uint16.
- Make use of the [u]int{16,32,64}_t types, if they're around.
Wayne Davison [Sun, 17 Dec 2006 01:59:03 +0000 (01:59 +0000)]
We now check for these: int16_t, uint16_t, int32_t, uint32_t, and int64_t.
Wayne Davison [Sun, 17 Dec 2006 00:40:39 +0000 (00:40 +0000)]
Got rid of the code that sorted based on struct idev objects since
we always use a hardlinked group-number now.
Wayne Davison [Sun, 17 Dec 2006 00:40:36 +0000 (00:40 +0000)]
Use F_ROOTDIR() in place of dir.root.
Wayne Davison [Sun, 17 Dec 2006 00:40:33 +0000 (00:40 +0000)]
Use F_DEPTH() in place of dir.depth.
Wayne Davison [Sun, 17 Dec 2006 00:40:28 +0000 (00:40 +0000)]
Got rid of the hlink_pool in favor of using the new hashtable code
on the receiving side. This allows us to always use a 32-bit number
to identify the hardlink clusters, even on a system where pointers
are 64-bits. Also made changes to handle the use of F_ROOTDIR() and
F_DEPTH() instead of the old union that wasted space on the
receiving side when pointers are 64-bits.
Wayne Davison [Sun, 17 Dec 2006 00:40:24 +0000 (00:40 +0000)]
- Got rid of "struct idev".
- Use just the 32-bit numbers in the file_extras union.
- Re-ordered the items in the file_struct to avoid padding
on systems with 64-bit pointers.
- Got rid of the "dir" union in the file_struct, making the
two items into "extras": F_DEPTH() for the receiving side,
and F_ROOTDIR() for the sending side.
- Added PTR_EXTRA_LEN define.
- Got rid of F_HL_IDEV() define.
Wayne Davison [Sun, 17 Dec 2006 00:40:21 +0000 (00:40 +0000)]
Moved the flist_extra_cnt stuff from options.c to compat.c so that
the values will be computed separately for the sender and the
receiver.
Wayne Davison [Sun, 17 Dec 2006 00:40:18 +0000 (00:40 +0000)]
- Ensure that mkrouding gets rebuilt when h changes.
- Added an easy way to run the tests using protocol 29.
Wayne Davison [Sat, 16 Dec 2006 23:14:59 +0000 (23:14 +0000)]
Make the error messages a little clearer.
Wayne Davison [Sat, 16 Dec 2006 21:11:58 +0000 (21:11 +0000)]
Output some info about the size of our structures.
Wayne Davison [Sat, 16 Dec 2006 19:24:17 +0000 (19:24 +0000)]
Changed the static file_struct var to match the changes in h.
Wayne Davison [Sat, 16 Dec 2006 19:24:14 +0000 (19:24 +0000)]
Use the new rounding.h file to optionally round up the count of
extra values we put at the start of the file_struct. Also, deal
with the extras variable no longer being in the file_struct.
Wayne Davison [Sat, 16 Dec 2006 19:24:11 +0000 (19:24 +0000)]
Build & run mkrounding to make the rounding.h file used by flist.c.
Also, clean up the new items.
Wayne Davison [Sat, 16 Dec 2006 19:24:08 +0000 (19:24 +0000)]
Moved the file_extra union out of the file_struct.
Wayne Davison [Sat, 16 Dec 2006 19:24:05 +0000 (19:24 +0000)]
New file to figure out if a system has any rounding needs when
prepending extra values at the start of the file_struct.
Wayne Davison [Sat, 16 Dec 2006 19:24:02 +0000 (19:24 +0000)]
Added mkrounding and rounding.h.
Wayne Davison [Sat, 16 Dec 2006 07:39:53 +0000 (07:39 +0000)]
Mention hard-link memory savings and byte-transfer savings.
Wayne Davison [Sat, 16 Dec 2006 07:18:41 +0000 (07:18 +0000)]
Added a basename var to file_struct at the end, making it clearer
where the basename exists without actually changing how the data
is organized.
Wayne Davison [Sat, 16 Dec 2006 02:18:44 +0000 (02:18 +0000)]
Changed the test for the 2.6.8 bug to preserve owner and group.
Wayne Davison [Fri, 15 Dec 2006 22:31:16 +0000 (22:31 +0000)]
Moved the calls to init_hard_links() into flist.c.
Wayne Davison [Fri, 15 Dec 2006 22:31:13 +0000 (22:31 +0000)]
Added a simple hashtable routine for hashing st_dev and st_ino info
on the sending side, and the support routines for the receiving side
that handle using a "group number" for each hard-link cluster rather
than having to manage a pool of dev+inode data. (For protocol 30)
Wayne Davison [Fri, 15 Dec 2006 22:31:10 +0000 (22:31 +0000)]
For protocol 30, the sender uses the new idev_node() hashfile
routine to keep track of which item is the first one in a particular
hard-link cluster. It then abbreviates the sending of any follow-on
items in the cluster, reducing transfer bytes. It also omits the
sending of any dev+inode data to the receiver, saving even more xfer
bytes (since the receiver can associate the entries based on the the
group's index number that is sent when abbreviating an entry).
Wayne Davison [Fri, 15 Dec 2006 22:31:07 +0000 (22:31 +0000)]
- The XMIT_SAME_DEV define is now pre-protocol-30 specific.
- Added XMIT_HLINK_FIRST define.
- Added struct idev_node.
- Added F_HL_GNUM() for protocol 30 (used in place of F_HL_IDEV()).
Wayne Davison [Thu, 14 Dec 2006 22:38:21 +0000 (22:38 +0000)]
Renamed XMIT_HAS_IDEV_DATA to XMIT_HLINKED.
Wayne Davison [Wed, 13 Dec 2006 15:36:15 +0000 (15:36 +0000)]
Renamed the F_*HLINK* macros to make their purpose clearer.
Wayne Davison [Wed, 13 Dec 2006 14:52:59 +0000 (14:52 +0000)]
Tweaked the option-passing code's delete logic to make it cleaner.
Wayne Davison [Tue, 12 Dec 2006 20:42:06 +0000 (20:42 +0000)]
Cast FILE_STRUCT_LEN & EXTRA_LEN to int for rprintf().
Wayne Davison [Tue, 12 Dec 2006 20:17:05 +0000 (20:17 +0000)]
Use new BITS_EQUAL() define.
Wayne Davison [Tue, 12 Dec 2006 20:17:02 +0000 (20:17 +0000)]
Added BITS_EQUAL() define.
Wayne Davison [Tue, 12 Dec 2006 15:01:57 +0000 (15:01 +0000)]
Removed last reference to "struct hlist".
Wayne Davison [Tue, 12 Dec 2006 14:58:10 +0000 (14:58 +0000)]
Neaten some function formatting.
Wayne Davison [Tue, 12 Dec 2006 14:55:21 +0000 (14:55 +0000)]
Provide alternate F_LENGTH() define for systems with no 64-bit type.
Wayne Davison [Sun, 10 Dec 2006 21:56:37 +0000 (21:56 +0000)]
Mention fix for -vv --stats.
Wayne Davison [Sun, 10 Dec 2006 14:55:44 +0000 (14:55 +0000)]
Added MSG_CLIENT to the acceptable messages the generator can
get from the receiver.