Wayne Davison [Fri, 28 Jan 2005 17:10:16 +0000 (17:10 +0000)]
- Moved read_only variable here from options.c
- Set read_only to 1 if the module is read-only.
- Make sure that the verbose level is 0 before we parse the client's
options.
Wayne Davison [Fri, 28 Jan 2005 17:07:54 +0000 (17:07 +0000)]
- Added --verbose option parsing to the daemon options.
- Moved read_only into clientserver.c.
Wayne Davison [Fri, 28 Jan 2005 17:06:41 +0000 (17:06 +0000)]
Got rid of unused mmap section.
Wayne Davison [Fri, 28 Jan 2005 16:27:02 +0000 (16:27 +0000)]
Changed HAVE_OFF64_T to SIZEOF_OFF64_T.
Wayne Davison [Fri, 28 Jan 2005 16:21:37 +0000 (16:21 +0000)]
Changed HAVE_OFF64_T to SIZEOF_OFF64_T.
Wayne Davison [Fri, 28 Jan 2005 09:55:36 +0000 (09:55 +0000)]
Improved the option summaries.
Wayne Davison [Fri, 28 Jan 2005 09:55:18 +0000 (09:55 +0000)]
Improved the option-descriptions in the --help text.
Wayne Davison [Fri, 28 Jan 2005 08:01:33 +0000 (08:01 +0000)]
More --delete-before improvements.
Wayne Davison [Fri, 28 Jan 2005 07:50:00 +0000 (07:50 +0000)]
One minor tweak to the --delete-before option-passing code.
Wayne Davison [Fri, 28 Jan 2005 07:39:59 +0000 (07:39 +0000)]
Document --delete-before.
Wayne Davison [Fri, 28 Jan 2005 07:39:09 +0000 (07:39 +0000)]
Added back support for the --delete-before option so that future
verions of rsync can more easily change the default that --delete
implies and still support explicit --delete-before functionality
when interacting with older versions.
Wayne Davison [Fri, 28 Jan 2005 06:51:44 +0000 (06:51 +0000)]
Added a sanity check for the SIZEOF_INT64 define.
Wayne Davison [Fri, 28 Jan 2005 06:46:33 +0000 (06:46 +0000)]
Use the new SIZEOF_INT64 define instead of INT64_IS_OFF_T.
Wayne Davison [Fri, 28 Jan 2005 06:45:16 +0000 (06:45 +0000)]
- Switched the int64 code over to using the improved SIZEOF_*
macros.
- Define SIZEOF_INT64 to a value that is useable at compile time.
- Got rid of INT64_IS_OFF_T.
Wayne Davison [Fri, 28 Jan 2005 06:43:48 +0000 (06:43 +0000)]
Switched the checks for "long long" and "off64_t" to use the
AC_CHECK_SIZEOF() macro since it now fully supports cross-
compiling.
Wayne Davison [Fri, 28 Jan 2005 02:01:18 +0000 (02:01 +0000)]
Use SIGNED_CHAR_OK instead of HAVE_UNSIGNED_CHAR.
Wayne Davison [Fri, 28 Jan 2005 02:00:40 +0000 (02:00 +0000)]
- Made some of the tests work better when cross-compiling.
- Added descriptions for all config.h variables that had none.
- Changed HAVE_UNSIGNED_CHAR to SIGNED_CHAR_OK.
- Got rid of (the unused) HAVE_SHORT_INO_T.
- Changed version to 2.6.4cvs (long overdue).
Wayne Davison [Fri, 28 Jan 2005 01:56:50 +0000 (01:56 +0000)]
Added a few more details of changes since 2.6.3.
Wayne Davison [Fri, 28 Jan 2005 00:01:54 +0000 (00:01 +0000)]
Mention the latest changes plus a few missed items.
Wayne Davison [Thu, 27 Jan 2005 22:47:23 +0000 (22:47 +0000)]
Docment the new --delay-updates option.
Wayne Davison [Thu, 27 Jan 2005 22:46:36 +0000 (22:46 +0000)]
Implement the new --delay-updates option.
Wayne Davison [Thu, 27 Jan 2005 22:46:14 +0000 (22:46 +0000)]
Added the new --delay-updates option.
Wayne Davison [Thu, 27 Jan 2005 22:23:30 +0000 (22:23 +0000)]
- Output the new flist time stats (when available).
- For protocol 29 and above, send the flist time stats to the
client side (as needed).
Wayne Davison [Thu, 27 Jan 2005 22:21:45 +0000 (22:21 +0000)]
Set the new stats.flist_buildtime and stats.flist_xfertime values.
Wayne Davison [Thu, 27 Jan 2005 21:55:11 +0000 (21:55 +0000)]
- Added a caveat to the definition of the int64 type.
- Added two time values to the stats struct.
Wayne Davison [Thu, 27 Jan 2005 21:45:32 +0000 (21:45 +0000)]
Added a missing newline to an error message.
Wayne Davison [Thu, 27 Jan 2005 21:42:56 +0000 (21:42 +0000)]
Bumped the copyright year to 2005.
Wayne Davison [Tue, 25 Jan 2005 18:16:34 +0000 (18:16 +0000)]
Added .rsync-filter.
Wayne Davison [Tue, 25 Jan 2005 17:16:13 +0000 (17:16 +0000)]
If rsync is put in the background, output fewer progress-report
lines.
Wayne Davison [Tue, 25 Jan 2005 12:13:53 +0000 (12:13 +0000)]
- Use the "--filter=._-" option instead of --exclude-from=- if the
protocol being saved is >= 29.
- Call the new get_rule_prefix() function to figure out the right
rule prefix.
- Strip out the --filter and -f options from the cached command-line.
Wayne Davison [Tue, 25 Jan 2005 12:10:31 +0000 (12:10 +0000)]
- Moved the code that turns rule flags into chars into a new
function called get_rule_prefix().
- Don't pass the per-dir .cvsignore rule from -C for protocols < 29.
Wayne Davison [Tue, 25 Jan 2005 12:07:13 +0000 (12:07 +0000)]
In delete_files(), handle new DEL_NO_RECURSE flag (and use
renamed DEL_FORCE_RECURSE flag.
Wayne Davison [Tue, 25 Jan 2005 12:05:20 +0000 (12:05 +0000)]
- The call to delete_file() needs DEL_NO_RECURSE when handling
delete_before or delete_after or --dry-run will report too
many deletions.
- Changed DEL_RECURSE to DEL_FORCE_RECURSE.
Wayne Davison [Tue, 25 Jan 2005 12:02:08 +0000 (12:02 +0000)]
Added DEL_NO_RECURSE and changed DEL_RECURSE to DEL_FORCE_RECURSE.
Wayne Davison [Tue, 25 Jan 2005 11:55:03 +0000 (11:55 +0000)]
Needed to call add_cvs_excludes() from one more code path.
Wayne Davison [Tue, 25 Jan 2005 10:39:14 +0000 (10:39 +0000)]
Renamed several exclude-related functions/variables using new
filter terminology.
Wayne Davison [Tue, 25 Jan 2005 04:00:31 +0000 (04:00 +0000)]
Mention the latest new options.
Wayne Davison [Tue, 25 Jan 2005 03:18:29 +0000 (03:18 +0000)]
Added testing for --filter and merge-file features.
Wayne Davison [Tue, 25 Jan 2005 03:09:06 +0000 (03:09 +0000)]
Mention that --del is a popt alias for --delete-during, so there's
no need to refuse "del" by name -- just refusing "delete-during" or
"delete*" is sufficient.
Wayne Davison [Tue, 25 Jan 2005 03:09:02 +0000 (03:09 +0000)]
Document the latest --delete options, including --delete-during.
Wayne Davison [Tue, 25 Jan 2005 03:08:58 +0000 (03:08 +0000)]
- Changed --delete to go back to defaulting to the delete-before
functionality.
- Got rid of --delete-before.
- Added --delete-during.
- Added a popt alias for --delete-during: --del.
- Fixed a bug in the generation of the proper --delete options
for the server.
- Generate an error if the user tries to specify both --delete-during
and --delete-after.
Wayne Davison [Tue, 25 Jan 2005 02:30:59 +0000 (02:30 +0000)]
Don't try to allocate zero bytes in push_local_excludes().
Wayne Davison [Tue, 25 Jan 2005 00:53:07 +0000 (00:53 +0000)]
Document the new "filter" parameter.
Wayne Davison [Tue, 25 Jan 2005 00:53:03 +0000 (00:53 +0000)]
Document --filter (-f) and -F, with lots of changes to the
include/exclude sections, including a little restructuring.
Wayne Davison [Tue, 25 Jan 2005 00:52:59 +0000 (00:52 +0000)]
Some changes to support the new --filter option:
- Changed XFLG_WORDS_ONLY to XFLG_NO_PREFIXES.
- Added XFLG_DEF_EXCLUDE and XFLG_ABS_PATH.
- Added some new MATCHFLG_* values for the new merge-file support.
- Put the "slash_cnt" var (in the exclude_struct) into a union with
the new megelist pointer.
Wayne Davison [Tue, 25 Jan 2005 00:52:56 +0000 (00:52 +0000)]
- Added parsing for --filter (-f) and -F.
- Changed the include/exclude calls to work with the new XFLG_* values.
Wayne Davison [Tue, 25 Jan 2005 00:52:53 +0000 (00:52 +0000)]
Added the "filter" parameter.
Wayne Davison [Tue, 25 Jan 2005 00:52:50 +0000 (00:52 +0000)]
The calls into the exclude system changed a little for the new --filter
option:
- The special handling for cvs_exclude went away.
- Call push_local_excludes() and pop_local_excludes() instead of fiddling
with the (no longer present) local_exclude_list var.
Wayne Davison [Tue, 25 Jan 2005 00:52:47 +0000 (00:52 +0000)]
Implemented the core of the merge-file and per-dir merge-file support
for the --filter option. Some noteworthy changes:
- Added push_local_excludes() and pop_local_excludes() to implement
the changes needed as we go from directory to directory (this takes
the place of the old local_exclude_list var that only handled the
.cvsignore files). These per-dir excludes are linked into the same
exclude list as the global excludes.
- The exclude list is transferred as filter rules to an rsync that
talks protocol 29 or above. It limits itself to just include/exclude
rules for older rsyncs.
Wayne Davison [Tue, 25 Jan 2005 00:52:44 +0000 (00:52 +0000)]
Some exclude changes for the new --filter option, including:
- Added module_dirlen var.
- Call set_excludes_dir() instead of setting exclude_path_prefix.
- Use the newest XFLG_* options.
Wayne Davison [Tue, 25 Jan 2005 00:47:35 +0000 (00:47 +0000)]
Improved the explanation for --omit-dir-times.
Wayne Davison [Mon, 24 Jan 2005 17:19:04 +0000 (17:19 +0000)]
Moved the code that reads the extra byte for a modern inplace
transfer up nearer the code that reads the index.
Wayne Davison [Mon, 24 Jan 2005 06:19:58 +0000 (06:19 +0000)]
Optimized away the post-transfer directory loop in certain
circumstances.
Wayne Davison [Mon, 24 Jan 2005 01:41:57 +0000 (01:41 +0000)]
Document --delete-before and --delete's new "during" behavior.
Wayne Davison [Mon, 24 Jan 2005 01:41:54 +0000 (01:41 +0000)]
Added the delete-during handling (also selected with --delete) and
added --delete-before for the old delete logic.
Wayne Davison [Mon, 24 Jan 2005 01:41:51 +0000 (01:41 +0000)]
Moved a call to add_cvs_exclude() from the delete code to one code-
path in this file. This avoids a potential duplication of the
cvs-excludes that would occur in the old logic.
Wayne Davison [Mon, 24 Jan 2005 01:41:48 +0000 (01:41 +0000)]
Added code to implement the delete-during handling.
Wayne Davison [Mon, 24 Jan 2005 01:41:45 +0000 (01:41 +0000)]
Moved some of the delete code into flist.c since the generator now
calls it for the delete-during handling.
Wayne Davison [Mon, 24 Jan 2005 01:41:42 +0000 (01:41 +0000)]
Moved some of the delete code from receiver.c to here and implemented
the handling for delete_during (which is called from the generator).
Wayne Davison [Mon, 24 Jan 2005 00:56:37 +0000 (00:56 +0000)]
Mention the --omit-dir-times option.
Wayne Davison [Mon, 24 Jan 2005 00:51:38 +0000 (00:51 +0000)]
Document --omit-dir-times.
Wayne Davison [Mon, 24 Jan 2005 00:51:34 +0000 (00:51 +0000)]
Honor the new omit_dir_times var.
Wayne Davison [Mon, 24 Jan 2005 00:51:32 +0000 (00:51 +0000)]
Added --omit-dir-times (-O).
Wayne Davison [Mon, 24 Jan 2005 00:34:53 +0000 (00:34 +0000)]
Mentioned the --dirs and --list-only options.
Wayne Davison [Mon, 24 Jan 2005 00:17:42 +0000 (00:17 +0000)]
- Changed --keep-dirs (-k) into --dirs (-d).
- Document --list-only.
Wayne Davison [Mon, 24 Jan 2005 00:17:39 +0000 (00:17 +0000)]
- Changed --keep-dirs (-k) into --dirs (-d).
- Renamed keep_dirs to xfer_dirs.
- Mention --list-only in the --help.
Wayne Davison [Mon, 24 Jan 2005 00:17:36 +0000 (00:17 +0000)]
Renamed keep_dirs, "xfer_dirs".
Wayne Davison [Sun, 23 Jan 2005 16:49:09 +0000 (16:49 +0000)]
Document the new --keep-dirs option.
Wayne Davison [Sun, 23 Jan 2005 07:27:01 +0000 (07:27 +0000)]
Go back to requiring -r for deletes to happen.
Wayne Davison [Sun, 23 Jan 2005 01:25:36 +0000 (01:25 +0000)]
When an option defined with POPT_ARG_VAL is being refused, we must
change it to POPT_ARG_NONE or it won't be refused.
Wayne Davison [Sat, 22 Jan 2005 22:48:40 +0000 (22:48 +0000)]
- Use the new delete_before var.
- Check the "keep_dirs" var instead of "recurse" to decide if
delete is appropriate.
Wayne Davison [Sat, 22 Jan 2005 22:48:37 +0000 (22:48 +0000)]
Check the "keep_dirs" var instead of "recurse" to decide if
delete-after is appropriate.
Wayne Davison [Sat, 22 Jan 2005 22:48:34 +0000 (22:48 +0000)]
- We now set a delete_before variable for the --delete option.
- Reordered some of the options in the --help list.
- Made the popt-handling of the delete options simpler.
- Parse the new --keep-dirs option.
- Parse the new --list-only option.
- Set recurse to -1 (infinite) for the -r and -a options.
- Set keep_dirs for --list-only.
Wayne Davison [Sat, 22 Jan 2005 22:48:31 +0000 (22:48 +0000)]
- Implemented a new handling of the recurse variable: if it is
< 0, it specifies infinite recursion, otherwise it contains a
count of how many levels of recursion we will allow.
- If the user is processing/listing a non-recursive directory/
arg, send the contents.
Wayne Davison [Sat, 22 Jan 2005 22:48:27 +0000 (22:48 +0000)]
- Mustn't override a user-specified list_only value.
- Moved the computing of the options for the server down until
after we've figured out the protocol_version for the transfer.
- If we're talking to a protocol-29 server in list-only mode,
force the new --list-only mode (which avoids the -r with
--exclude="/*/*" kluge).
- Output the options we sent to the daemon if verbose > 1.
Wayne Davison [Sat, 22 Jan 2005 20:32:03 +0000 (20:32 +0000)]
Changed the order of a few of the options in the options summary.
Wayne Davison [Sat, 22 Jan 2005 20:28:17 +0000 (20:28 +0000)]
Mustn't override a user-specified list_only value.
Wayne Davison [Sat, 22 Jan 2005 20:27:22 +0000 (20:27 +0000)]
Changed a comment.
Wayne Davison [Sat, 22 Jan 2005 08:11:43 +0000 (08:11 +0000)]
Moved the /proc/mounts literal string nearer to the top.
Wayne Davison [Fri, 21 Jan 2005 00:34:37 +0000 (00:34 +0000)]
- Changed XMIT_TOP_DIR to XMIT_DEL_START.
- Changed FLAG_TOP_DIR to FLAG_DEL_START.
Wayne Davison [Thu, 20 Jan 2005 23:57:35 +0000 (23:57 +0000)]
Don't mention when the file-list is first allocated, just when it
expands.
Wayne Davison [Thu, 20 Jan 2005 23:51:57 +0000 (23:51 +0000)]
In delete_file(): got rid of DEL_NO_RECURSE code and added
DEL_RECURSE code. Improved the verbose output of a recursively
deleted directory when --dry-run is specified.
Wayne Davison [Thu, 20 Jan 2005 23:51:55 +0000 (23:51 +0000)]
Decided that delete_in_dir()'s call to delete_file() would be
better using DEL_RECURSE.
Wayne Davison [Thu, 20 Jan 2005 23:51:52 +0000 (23:51 +0000)]
Changed DEL_NO_RECURSE to DEL_RECURSE.
Wayne Davison [Thu, 20 Jan 2005 23:01:34 +0000 (23:01 +0000)]
Moved the dry_run check in set_perms() so that it only triggers if
we don't have a stat-buffer (and returns 1, not 0).
Wayne Davison [Thu, 20 Jan 2005 22:59:54 +0000 (22:59 +0000)]
Got rid of the erroneous --dry-run short-circuit in the directory
handling.
Wayne Davison [Thu, 20 Jan 2005 22:58:30 +0000 (22:58 +0000)]
In set_modtime(), the verbose message should be output even if
--dry-run was specified.
Wayne Davison [Thu, 20 Jan 2005 22:43:32 +0000 (22:43 +0000)]
- Got rid of the uint64 typedef.
- Changed the dev/inode vars to use int64.
Wayne Davison [Thu, 20 Jan 2005 22:42:47 +0000 (22:42 +0000)]
Switched uint64 vars over to int64.
Wayne Davison [Thu, 20 Jan 2005 22:37:38 +0000 (22:37 +0000)]
Use int64 instead of uint64.
Wayne Davison [Thu, 20 Jan 2005 19:31:42 +0000 (19:31 +0000)]
Improved a confusing sentence in the description of subcomponent
include/exclude matching.
Wayne Davison [Thu, 20 Jan 2005 00:53:15 +0000 (00:53 +0000)]
When outputting the file list created for the delete pass, identify
it as such.
Wayne Davison [Wed, 19 Jan 2005 21:07:09 +0000 (21:07 +0000)]
Added an example of running mnt-excl remotely via ssh for a pull.
Wayne Davison [Wed, 19 Jan 2005 21:00:26 +0000 (21:00 +0000)]
A perl script that outputs excludes for all mount points that affect
the supplied source dir (or all mount points if the arg is omitted).
The excludes are appropriately anchored relative to the supplied dir,
and honor rsync's trailing-slash idiom.
Wayne Davison [Wed, 19 Jan 2005 20:32:25 +0000 (20:32 +0000)]
Mention a change in the verbose output when deleting directories.
Wayne Davison [Wed, 19 Jan 2005 20:11:03 +0000 (20:11 +0000)]
- Updated delete_file() to take a flag arg that makes it more
flexible. Optimized away a stat() call since the caller knows
if the item to delete is a directory or not.
- Tweaked delete_file()'s "deleting ..." messages to include a
trailing slash when we're deleting a directory.
- No need for conditional code around do_lstat() anymore.
Wayne Davison [Wed, 19 Jan 2005 20:11:00 +0000 (20:11 +0000)]
Define the new DEL_* flags.
Wayne Davison [Wed, 19 Jan 2005 20:10:57 +0000 (20:10 +0000)]
- Moved write_sum_head() to io.c.
- Use the new delete_file() calling syntax.
Wayne Davison [Wed, 19 Jan 2005 20:10:53 +0000 (20:10 +0000)]
Got rid of delete_one() since we can (and do) use the updated
delete_file() call now.
Wayne Davison [Wed, 19 Jan 2005 20:10:50 +0000 (20:10 +0000)]
Moved write_sum_head() here from generator.c.