Commit Graph

  • 4ccfd96cfe Tweaked one or more warning messages. Wayne Davison 2005-01-31 19:13:19 +00:00
  • 408aa7b24c Improved the exclude tests to make sure that the filter files are interacting with --delete-during correctly. Wayne Davison 2005-01-31 18:09:23 +00:00
  • 776b9d1c00 Added "need_first_push" logic to delete_in_dir(). Wayne Davison 2005-01-30 20:24:11 +00:00
  • c93fad5ee0 The --delete-during processing only happens during the first phase (not the redo phase). We also call delete_in_dir(NULL, NULL) to make sure that all the local filter files get popped. Wayne Davison 2005-01-30 10:06:18 +00:00
  • 19b2a5d9fd delete_in_dir() now mananges the push/pop levels of nested directories properly. Wayne Davison 2005-01-30 10:01:21 +00:00
  • f1773e09ab - Now delete_in_dir() calls send_directory(), not send_file_name(). - Moved the local-list push/pop code out of send_directory() so that the callers (send_file_name() and delete_in_dir()) can call the push/pop functions themselves. This is in preparation for delete_in_dir() getting fully correct push/pop semantics (for its --delete-during handling of per-dir filter files). Wayne Davison 2005-01-30 09:12:55 +00:00
  • 462c51d9a1 - Restored the io_error test to delete_files(). - Sanity check the dir_list value from send_file_list(). Wayne Davison 2005-01-30 07:35:13 +00:00
  • 2430e98412 - Made delete_files() call send_file_list() and delete_missing() instead of delete_in_dir(). - Tweaked check in front of delete_files() call. Wayne Davison 2005-01-29 22:35:53 +00:00
  • 78fc60cd29 If --recurse wasn't specified, turn off all the --delete* options. Wayne Davison 2005-01-29 22:35:50 +00:00
  • 864146de58 Tweaked check in front of delete_files() call. Wayne Davison 2005-01-29 22:35:47 +00:00
  • 45478cc79b - Improved the handling of -x with -K. - Changed delete_in_dir() to only be used by the --delete-during option. - Added delete_missing() that is used by both delete_files() and delete_in_dir(). - delete_files() still uses send_file_list(), but delete_in_dir() now uses send_file_name(). Wayne Davison 2005-01-29 22:35:44 +00:00
  • 5454d22ad8 The --dirs was sending -k instead of -d. Wayne Davison 2005-01-29 21:25:44 +00:00
  • dc1488ae47 - Document the new "/" modifier for -/+. - "=" is no longer a valid separator for a filter rule. Wayne Davison 2005-01-29 20:48:27 +00:00
  • 0121a8ecad Renamed XFLG_ABS_PATH XFLG_ANCHORED2ABS. Wayne Davison 2005-01-29 20:48:23 +00:00
  • 7bc90b3066 Moved the module_id define into clientserver.c. Wayne Davison 2005-01-29 20:48:20 +00:00
  • bf39270e0c - Renamed make_filter() to filter_rule(). - Added the "/" modifier to the -/+ filter rules to allow the rule to specify an absolute path (sets MATCHFLG_ABS_PATH). - Added the passing of the xflgags to filter_rule() and key off XFLG_ANCHORED2ABS to prepend the current dirbuf value (was keing off MATCHFLG_ABS_PATH). - We no longer allow a '=' to separate the filter rule from its arg (just a single space or an underscore). - For triple verbose levels, mention when we look for a filter file even if we don't find it (used to only mention the file when it was found). - A chrooted daemon process now includes /.cvsignore (inside the chrooted hierarchy) instead of $HOME/.cvsignore. Wayne Davison 2005-01-29 20:48:17 +00:00
  • 211bc43b6e - Moved the module_id definition from options.c to here. - Use the new XFLG_ANCHORED2ABS name for the old XFLG_ABS_PATH define. Wayne Davison 2005-01-29 20:48:14 +00:00
  • 91c5833bd0 Change one call to add_cvs_excludes() to add_filter() to just add the per-dir .cvsignore rule for protocols < 29. Wayne Davison 2005-01-29 20:29:06 +00:00
  • 8311f1c11e A minor change to the HAVE_GETPGRP code. Wayne Davison 2005-01-28 23:00:58 +00:00
  • ae2836325f Fixed some typos. Wayne Davison 2005-01-28 22:01:02 +00:00
  • a897af2cde Mention a few more things. Wayne Davison 2005-01-28 21:48:32 +00:00
  • cc80022e84 Pass an unsigned character to isdigit(). Wayne Davison 2005-01-28 21:32:20 +00:00
  • 5a016db9b6 Don't allow the user to specify a filter file that is excluded by a daemon's config options. Wayne Davison 2005-01-28 21:28:08 +00:00
  • 92e1aeede7 Got rid of an unreachable free() call. Wayne Davison 2005-01-28 21:07:05 +00:00
  • f846a9bfe9 Cast each value referenced from the struct mallinfo to a long in order to print it. Wayne Davison 2005-01-28 21:05:50 +00:00
  • 3db859e8b5 Don't set unsigned del_heir_name_len to -1 -- it's only used if in_del_hier is non-zero, so it doesn't need to take on an invalid value. Wayne Davison 2005-01-28 21:03:50 +00:00
  • 0eeb1cf83a Case uchar pointer to a char pointer when calling strlen(). Wayne Davison 2005-01-28 21:02:15 +00:00
  • 5f238db203 - Use "uchar" instead of "unsigned char". - Tweaked an initializer to try to avoid a compiler warning. Wayne Davison 2005-01-28 21:01:21 +00:00
  • 422696201a Call the right stat function based on USE_STAT64_FUNCS. Wayne Davison 2005-01-28 20:43:09 +00:00
  • 58fef0ac38 Changed direct call to fstat() into a call to do_fstat(). Wayne Davison 2005-01-28 20:41:36 +00:00
  • 25e1181466 Use new USE_STAT64_FUNCS define. Wayne Davison 2005-01-28 20:33:55 +00:00
  • 5b5f7e3b59 - Use off_t if SIZEOF_OFF_T is 8. - Define USE_STAT64_FUNCS if we defined STRUCT_STAT as "struct stat64". Wayne Davison 2005-01-28 20:32:47 +00:00
  • dc3afaf6aa Changed "char" to "uchar" in delayed_bits's new_array() call. Wayne Davison 2005-01-28 20:24:23 +00:00
  • 1164f67827 Make use of new HAVE_STRUCT_STAT64 define. Wayne Davison 2005-01-28 20:15:08 +00:00
  • c83a2c8ec5 Added a check for "struct stat64". Wayne Davison 2005-01-28 20:15:06 +00:00
  • 43d0f38b24 Do a better job defining an int32. Also define SIZEOF_INT32 instead of the (unused) LARGE_INT32 variable. Wayne Davison 2005-01-28 19:03:16 +00:00
  • e95538ca2c - Changed the main core of system include files to use the same "#if" idioms that configure uses. - Use "#if" (not "#ifdef") for configure-defined macros. - Use "#if !" (not "#ifndef") for configure-defined macros. Wayne Davison 2005-01-28 18:50:54 +00:00
  • 25ff04417e Use "#if" (not "#ifdef") for configure-defined macros. Wayne Davison 2005-01-28 18:50:49 +00:00
  • 63ecee4d1a Made log_open() static and made it die with an error if the log-file can't be opened. Wayne Davison 2005-01-28 17:42:21 +00:00
  • 4c8f6b6a06 No need to call log_open() in start_accept_loop() because rsync_module() calls log_init() before it gives up its privileges. Wayne Davison 2005-01-28 17:33:57 +00:00
  • 2161111900 Document the "max verbosity" setting. Wayne Davison 2005-01-28 17:11:48 +00:00
  • 24b0922b0e Document the --verbose (-v) option for the daemon. Wayne Davison 2005-01-28 17:10:58 +00:00
  • 186387301f - 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 2005-01-28 17:10:16 +00:00
  • 1bd9db74ba - Added --verbose option parsing to the daemon options. - Moved read_only into clientserver.c. Wayne Davison 2005-01-28 17:07:54 +00:00
  • df6933406f Got rid of unused mmap section. Wayne Davison 2005-01-28 17:06:41 +00:00
  • d679c8390a Changed HAVE_OFF64_T to SIZEOF_OFF64_T. Wayne Davison 2005-01-28 16:27:02 +00:00
  • d4daa7b68c Changed HAVE_OFF64_T to SIZEOF_OFF64_T. Wayne Davison 2005-01-28 16:21:37 +00:00
  • 44d98d6166 Improved the option summaries. Wayne Davison 2005-01-28 09:55:36 +00:00
  • b3708acf27 Improved the option-descriptions in the --help text. Wayne Davison 2005-01-28 09:55:18 +00:00
  • 2c0fa6c5df More --delete-before improvements. Wayne Davison 2005-01-28 08:01:33 +00:00
  • 57f74bd1c2 One minor tweak to the --delete-before option-passing code. Wayne Davison 2005-01-28 07:50:00 +00:00
  • 598c409e63 Document --delete-before. Wayne Davison 2005-01-28 07:39:59 +00:00
  • c6eb7fad68 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 2005-01-28 07:39:09 +00:00
  • c561edaa72 Added a sanity check for the SIZEOF_INT64 define. Wayne Davison 2005-01-28 06:51:44 +00:00
  • 031fa9ad4d Use the new SIZEOF_INT64 define instead of INT64_IS_OFF_T. Wayne Davison 2005-01-28 06:46:33 +00:00
  • d622d4bf30 - 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 2005-01-28 06:45:16 +00:00
  • e32db5c9aa 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 2005-01-28 06:43:48 +00:00
  • 4a6c209a13 Use SIGNED_CHAR_OK instead of HAVE_UNSIGNED_CHAR. Wayne Davison 2005-01-28 02:01:18 +00:00
  • 0d2aa5d9d7 - 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 2005-01-28 02:00:40 +00:00
  • e30b1fb8fd Added a few more details of changes since 2.6.3. Wayne Davison 2005-01-28 01:56:50 +00:00
  • da1b6eeaf2 Mention the latest changes plus a few missed items. Wayne Davison 2005-01-28 00:01:54 +00:00
  • 01b835c237 Docment the new --delay-updates option. Wayne Davison 2005-01-27 22:47:23 +00:00
  • 48e1c8c69d Implement the new --delay-updates option. Wayne Davison 2005-01-27 22:46:36 +00:00
  • f06e708282 Added the new --delay-updates option. Wayne Davison 2005-01-27 22:46:14 +00:00
  • f0f7e760ae - 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 2005-01-27 22:23:30 +00:00
  • 31b4d25d10 Set the new stats.flist_buildtime and stats.flist_xfertime values. Wayne Davison 2005-01-27 22:21:45 +00:00
  • d41988232e - Added a caveat to the definition of the int64 type. - Added two time values to the stats struct. Wayne Davison 2005-01-27 21:55:11 +00:00
  • 880570f228 Added a missing newline to an error message. Wayne Davison 2005-01-27 21:45:32 +00:00
  • 72a90c750a Bumped the copyright year to 2005. Wayne Davison 2005-01-27 21:42:56 +00:00
  • e1988bc744 Added .rsync-filter. Wayne Davison 2005-01-25 18:16:34 +00:00
  • d6a3e37b83 If rsync is put in the background, output fewer progress-report lines. Wayne Davison 2005-01-25 17:16:13 +00:00
  • 8261047b1e - 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 2005-01-25 12:13:53 +00:00
  • 417b59997f - 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 2005-01-25 12:10:31 +00:00
  • 4366d2c428 In delete_files(), handle new DEL_NO_RECURSE flag (and use renamed DEL_FORCE_RECURSE flag. Wayne Davison 2005-01-25 12:07:13 +00:00
  • 217cc3b045 - 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 2005-01-25 12:05:20 +00:00
  • 757e0a5445 Added DEL_NO_RECURSE and changed DEL_RECURSE to DEL_FORCE_RECURSE. Wayne Davison 2005-01-25 12:02:08 +00:00
  • ddf6410130 Needed to call add_cvs_excludes() from one more code path. Wayne Davison 2005-01-25 11:55:03 +00:00
  • 7842418b7b Renamed several exclude-related functions/variables using new filter terminology. Wayne Davison 2005-01-25 10:39:14 +00:00
  • 9624b86426 Mention the latest new options. Wayne Davison 2005-01-25 04:00:31 +00:00
  • 201a2fe5ff Added testing for --filter and merge-file features. Wayne Davison 2005-01-25 03:18:29 +00:00
  • ed032a88b8 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 2005-01-25 03:09:06 +00:00
  • ae76a74043 Document the latest --delete options, including --delete-during. Wayne Davison 2005-01-25 03:09:02 +00:00
  • 3359acb8cb - 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 2005-01-25 03:08:58 +00:00
  • a2b371cd52 Don't try to allocate zero bytes in push_local_excludes(). Wayne Davison 2005-01-25 02:30:59 +00:00
  • dd69b3976a Document the new "filter" parameter. Wayne Davison 2005-01-25 00:53:07 +00:00
  • 16e5de84da Document --filter (-f) and -F, with lots of changes to the include/exclude sections, including a little restructuring. Wayne Davison 2005-01-25 00:53:03 +00:00
  • 46fa602530 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 2005-01-25 00:52:59 +00:00
  • aa4d3b4cc0 - Added parsing for --filter (-f) and -F. - Changed the include/exclude calls to work with the new XFLG_* values. Wayne Davison 2005-01-25 00:52:56 +00:00
  • 73ed23495e Added the "filter" parameter. Wayne Davison 2005-01-25 00:52:53 +00:00
  • c7d970f782 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 2005-01-25 00:52:50 +00:00
  • 6dfd07d025 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 2005-01-25 00:52:47 +00:00
  • e7bf7c0161 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 2005-01-25 00:52:44 +00:00
  • f5a7b9e716 Improved the explanation for --omit-dir-times. Wayne Davison 2005-01-25 00:47:35 +00:00
  • b951e023ec Moved the code that reads the extra byte for a modern inplace transfer up nearer the code that reads the index. Wayne Davison 2005-01-24 17:19:04 +00:00
  • 3ea9bbd632 Optimized away the post-transfer directory loop in certain circumstances. Wayne Davison 2005-01-24 06:19:58 +00:00
  • aaca3daa27 Document --delete-before and --delete's new "during" behavior. Wayne Davison 2005-01-24 01:41:57 +00:00
  • a51b316824 Added the delete-during handling (also selected with --delete) and added --delete-before for the old delete logic. Wayne Davison 2005-01-24 01:41:54 +00:00
  • 928a00c474 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 2005-01-24 01:41:51 +00:00
  • fa13f396d5 Added code to implement the delete-during handling. Wayne Davison 2005-01-24 01:41:48 +00:00
  • 3ab56a20ee Moved some of the delete code into flist.c since the generator now calls it for the delete-during handling. Wayne Davison 2005-01-24 01:41:45 +00:00