Commit Graph

  • 9b49704959 Added a remote-shell substitute for use in testing and for certain other esoteric needs. Wayne Davison 2007-09-08 20:03:42 +00:00
  • ffbffc647b Improved the argv/argc variable names that are really pointers. Wayne Davison 2007-09-08 19:42:27 +00:00
  • 968061bb65 Clarified something in the new --hard-links text. Wayne Davison 2007-09-04 20:10:52 +00:00
  • c47e3ee1b6 Fixed two flist->files[first_hlink_ndx] references. Wayne Davison 2007-09-04 07:13:01 +00:00
  • 549a3efbb7 Improved a sentence. Wayne Davison 2007-09-04 06:58:19 +00:00
  • accf8d12bc Added a test combining -H with -c and a hard-linked file that has only one instance inside the copy hierarchy. (Used to fail with protocol 29 or --no-ir.) Wayne Davison 2007-09-04 06:57:57 +00:00
  • 0eeb9f5481 If we turn off FLAG_HLINKED, set FLAG_HLINK_DONE so that any file-entry values affected by HLINK_BUMP() stay put. Wayne Davison 2007-09-04 06:53:47 +00:00
  • 7b46e30fd4 Changed HLINK_BUMP() to look for either FLAG_HLINKED or FLAG_HLINK_DONE. Wayne Davison 2007-09-04 06:52:52 +00:00
  • 35c8fd761f Disabled the debug messages relating to the e_fds vars. Wayne Davison 2007-09-03 21:51:59 +00:00
  • ba2d43d702 - Got rid of caveat about -H not working with incremental recursion. - Talk about how inc_recurse affects -H. - Mention --no-inc-recursive and --no-ir options. Wayne Davison 2007-09-03 21:32:21 +00:00
  • 29349024c4 Improved the handling of the file-status events received by the generator. Wayne Davison 2007-09-03 21:21:24 +00:00
  • d108e04f38 We don't disable inc_recurse due to -H anymore. Wayne Davison 2007-09-03 21:21:21 +00:00
  • d4d6646aae Changes to allow hard-linking to work in inc_recurse mode. Wayne Davison 2007-09-03 21:21:17 +00:00
  • cf2d26656d - Changes to allow hard-linking to work in inc_recurse mode. - Incremented SUBPROTOCOL_VERSION to 7. Wayne Davison 2007-09-03 21:21:12 +00:00
  • 7918f24405 Changed some instances of \" in checkit calls to '. Wayne Davison 2007-09-03 20:43:58 +00:00
  • 9544261a45 Added weeding of "sending incremental file list" line to filter_outfile(). Wayne Davison 2007-09-03 19:52:35 +00:00
  • 354c9da60d Added hashtable.o. Wayne Davison 2007-09-03 04:59:15 +00:00
  • 626065702f Removed the old version of the hashtable functions and updated the code to use the structures and functions calls. Wayne Davison 2007-09-03 04:59:12 +00:00
  • 9863bdbc93 - Use the new hashtable structures and functions. - Tweaked a {read,write}_varint30() call set that didn't need to be "30". Wayne Davison 2007-09-03 04:59:09 +00:00
  • 83135e8f6a Updated hashtable structures. Wayne Davison 2007-09-03 04:59:05 +00:00
  • 369233927c The hashtable routines from hlink.c modified to have more generic names, to support 2 sizes of key (32 and 64 bits), and to have a non-allocating option for the find routine (returning NULL for no match). Wayne Davison 2007-09-03 04:46:57 +00:00
  • 7e4b6b7bc4 Use new0() function instead of new() followed by memset(). Wayne Davison 2007-09-03 04:19:11 +00:00
  • a2dc4d687b Tweaked _new_array() to handle new use_calloc parameter. Wayne Davison 2007-09-03 04:19:02 +00:00
  • a4431563e8 Added new0() and new_array0() to allocate and zero the memory. Wayne Davison 2007-09-03 04:18:58 +00:00
  • fbd91cae0c One more tweak to latest omit-dir-times code. Wayne Davison 2007-09-02 06:25:26 +00:00
  • eb7a6e09cb Added --no-omit-dir-times and --no-O. Wayne Davison 2007-09-02 06:20:42 +00:00
  • 9889a34bf2 Don't include the checksum_seed in the full-file MD5 checksum. Wayne Davison 2007-09-02 06:00:30 +00:00
  • 8e1e60e98f Bump up the SUBPROTOCOL_VERSION number. Wayne Davison 2007-09-02 06:00:27 +00:00
  • f9998046a3 Made omit_dir_times a static variable in options.c by encoding all the time-preserving semantics into preserve_times. Wayne Davison 2007-09-01 16:57:01 +00:00
  • 07bbf8703f Document the new --append and --append-verify options. Wayne Davison 2007-09-01 16:38:09 +00:00
  • 77502cbade Downgrade the new --append option to --append-verify for protocols < 30. Wayne Davison 2007-09-01 16:38:04 +00:00
  • 936fa865e1 Handle the new --append and --append-verify options. Wayne Davison 2007-09-01 16:38:00 +00:00
  • 2f188c8d96 Tweaked a comment. Wayne Davison 2007-09-01 00:59:44 +00:00
  • 83f5394810 Make the verbose message about the file-list expansion clearer in what is being expanded. Wayne Davison 2007-08-29 23:10:16 +00:00
  • 24d677fc16 Don't omit the -4/-6 options if no IPv6 support was compiled into rsync. Just make them a no-op. Wayne Davison 2007-08-22 00:36:56 +00:00
  • 65a22a5ff7 In pool_free_old(), one code path was not clearing a "next" pointer, so the code could try to free an extent twice in certain circumstances. Wayne Davison 2007-08-21 05:04:02 +00:00
  • a0f70237f5 Fix pool_create() to honor the POOL_INTERN flag. (Thanks to Brion Vibber.) Wayne Davison 2007-08-21 04:54:30 +00:00
  • 4eff3051a0 Fixed a null-pointer dereference pointed out by Olivier Thauvin. Wayne Davison 2007-08-16 01:22:46 +00:00
  • e208631a5b Improved the arg-checking of a daemon command. Wayne Davison 2007-08-11 16:53:31 +00:00
  • b553a3dd20 Document the RSYNC_CONNECT_PROG environment variable. Wayne Davison 2007-08-11 16:51:48 +00:00
  • e5f1a96ff8 Added support for a %H escape in the value of the RSYNC_CONNECT_PROG environment variable. Wayne Davison 2007-08-11 16:20:56 +00:00
  • eb7e7b2499 Get rid of the comment that --xattrs implies --perms and the outdated text that said it was a non-standard option. Wayne Davison 2007-08-04 22:19:49 +00:00
  • 3caafdfd2f Make the --xattrs option not imply --perms. Wayne Davison 2007-08-04 22:19:43 +00:00
  • 26ac181223 Let's go with "delta transfer algorithm" (thanks, Matt). Wayne Davison 2007-08-04 19:09:26 +00:00
  • 7fa60281bf Avoid a crash if pop_local_filters() has some pointer gaps. Wayne Davison 2007-08-04 19:09:21 +00:00
  • 73f2fa8189 - Call the rsync algorithm differential rather than incremental. - Don't refer to --files-from in the talk of incremental recursion, since it might make people think that --files-from disables incremental recursion for any recursively scanned directories. Wayne Davison 2007-08-04 17:47:08 +00:00
  • 75f162e46f - Use the new XMIT_NON_XFER_DIR flag. - Make sure that non-inc-recurse mode sets FLAG_XFER_DIR on all the non-implied directories. - Don't set FLAG_XFER_DIR on non-directories. Wayne Davison 2007-08-04 17:47:02 +00:00
  • 1d2ca00703 - Added XMIT_NON_XFER_DIR flag. - Incremented the SUBPROTOCOL_VERSION number. Wayne Davison 2007-08-04 17:46:59 +00:00
  • 4d91a5f8f4 Only honor XFLAGS_HLINKED on a non-directory. Wayne Davison 2007-08-04 16:10:37 +00:00
  • 61cb031ca4 Changed flags variable in send_file_entry() to xflags. Wayne Davison 2007-08-04 16:08:16 +00:00
  • ff0c27c926 Files with the same size should also be skipped by --append. Wayne Davison 2007-08-01 22:47:36 +00:00
  • d1d0a7051f Don't output a negative time-remaining value if the file has grown. Wayne Davison 2007-08-01 22:35:54 +00:00
  • 444f9f7b04 Fixed the port-parsing in an rsync:// path; e.g., this now works properly: rsync://backup@otherbox/module/a:123:b Wayne Davison 2007-08-01 22:25:02 +00:00
  • 411c04f06f If readdir() gives us an empty name, reject it. Wayne Davison 2007-08-01 22:18:46 +00:00
  • 5d935dce63 If --no-ir is specified, pass it to the server. Wayne Davison 2007-07-24 04:09:46 +00:00
  • b88f6fe7e5 Let's try using egrep instead of grep since grep on Solaris systems was failing to work right. Wayne Davison 2007-07-15 06:37:17 +00:00
  • e6109f496c Updated the --max-delete docs. Wayne Davison 2007-07-15 06:01:27 +00:00
  • 836ce36a4f Mention the improved --max-delete behavior. Wayne Davison 2007-07-15 05:51:05 +00:00
  • 35da2ec35a We don't need a compatibility check for --max-delete anymore. Wayne Davison 2007-07-15 05:43:05 +00:00
  • 7b9598b2d5 We now take a negative value specified to --max-delete as being synonymous with --max-delete=0. We also pass a request for 0 deletions to the server as --max-delete=-1. This ensures that we can send a backward-compatible option to old and new versions alike. Wayne Davison 2007-07-15 05:42:30 +00:00
  • 4a4622bbe5 Improve the description of --update with respect to symlinks and special files. Wayne Davison 2007-07-14 22:24:03 +00:00
  • c9ec460807 Make extra-verbose output of touch_up_dirs() only mention the dirs. Wayne Davison 2007-07-14 21:58:36 +00:00
  • 79cd0c7fa4 Using --relative with --no-implied-dirs turns off incremental recursion. (A temporary measure until some bugs can be fixed.) Wayne Davison 2007-07-14 21:49:11 +00:00
  • de8c8b28c0 - When --omit-implied-dirs is specified and the creation of a directory fails, we must make sure that the item we're skipping has a name that is still inside the missing hierarchy by using a prefix matching func. - We now handle the failure to remove a file to create a dir the same way as a failed mkdir() (skipping the failed dir's contents). Wayne Davison 2007-07-14 21:25:51 +00:00
  • 569e6f432b - Made f_name() and f_name_cmp() take const pointers. - Added f_name_has_prefix(). Wayne Davison 2007-07-14 21:21:15 +00:00
  • 0d585188f9 Make sure that any "dont compress" patterns that have wildcards in a suffix match stay in the wildcard-matching list. Wayne Davison 2007-07-14 19:36:52 +00:00
  • 34ca58d440 The "dont compress" daemon option points to the --skip-compress option for the default set of non-compressed file suffixes. Wayne Davison 2007-07-14 19:32:10 +00:00
  • 9c528e2935 Mention the latest changes. Wayne Davison 2007-07-14 19:29:04 +00:00
  • 2b967218eb Document --skip-compress. Wayne Davison 2007-07-14 19:24:44 +00:00
  • 6e058b4b60 - Added support for the new --skip-compress option. - Optimized the matching of non-compressing file suffixes. Wayne Davison 2007-07-14 19:24:35 +00:00
  • b1e436ec17 Parse the --skip-compress=LIST option and sent it to the sending side. Wayne Davison 2007-07-14 19:24:32 +00:00
  • 4319cc56d8 Added more suffixes to the default "dont compress" value. Wayne Davison 2007-07-14 19:24:27 +00:00
  • 952ae75138 Make sure that --dry-run with --del doesn't output extraneous info when the dest directory does not exist. Wayne Davison 2007-07-14 04:47:42 +00:00
  • 4d745d3cf5 The delete-during code needs to skip directories that don't exist yet in --dry-run mode to avoid outputting bogus delete details. Wayne Davison 2007-07-14 04:20:13 +00:00
  • 8798be8e63 Mention license change. Wayne Davison 2007-07-14 04:06:33 +00:00
  • 42b06481c3 Made some descriptions concerning modification times clearer. Wayne Davison 2007-07-12 14:43:26 +00:00
  • dbe287b701 Needed to use ndx_end in decrement_flist_in_progress(). Wayne Davison 2007-07-12 14:04:11 +00:00
  • 8e3b627d07 Mention how --ignore-existing can be useful for restarting a copy that uses --link-dest. Wayne Davison 2007-07-10 14:49:35 +00:00
  • 809724d7e2 - Use "filename", not "file name". - Say "regular file" instead of "file" when itemizing a list of non-directory types. - Try to avoid "file" in its generic sense, as it is hard to figure out when it includes dirs and when it doesn't. Wayne Davison 2007-07-10 14:21:59 +00:00
  • 8e41b68e8f Tweaking the license text a bit more. Wayne Davison 2007-07-10 13:55:49 +00:00
  • dc77edf218 Martin gave his approval to use GPLv3 with this code. Wayne Davison 2007-07-09 01:24:01 +00:00
  • 65ba6af61b - Do directory touch-ups at the end, even in inc-recurse mode. - Use the latest F_DIR_*() defines (whose names were tweaked). Wayne Davison 2007-07-08 20:53:42 +00:00
  • 83d5e90054 - Use the new DEV_EXTRA_CNT and DIRNODE_EXTRA_CNT defines. - Use the latest F_DIR_*() defines (whose names were tweaked). Wayne Davison 2007-07-08 20:53:38 +00:00
  • e434f0ebfe Use the latest F_DIR_*() defines (whose names were tweaked). Wayne Davison 2007-07-08 20:53:35 +00:00
  • a08979d564 - Define DEV_EXTRA_CNT and DIRNODE_EXTRA_CNT. - Define and use ACL_BUMP(), fixing a clash between -A and -x in a directory's data. - Tweaked the F_DIR_*() defines to have more consistent names. - Don't make F_SUM() return a char pointer that is const. Wayne Davison 2007-07-08 20:53:31 +00:00
  • 252af65bb4 Changed the spots that referred to the filter_level as filter_flags to make the naming consistent. Wayne Davison 2007-07-08 06:30:28 +00:00
  • d048c2f225 Added a test for --prune-empty-dirs. Wayne Davison 2007-07-08 06:25:57 +00:00
  • 9b9d5f89b3 Got rid of the output differences for protocol 30 since it is now the same as earlier protocols. Wayne Davison 2007-07-08 06:25:54 +00:00
  • e5bf3b5855 - Incremental recursion mode does not process the dirs while scanning a file list's contents. Instead, it handles a parent dir prior to each extra file list. This makes the dir-processing order the same in protocol 30 as it is in earlier protocols. - Moved the permission-fudging code for dirs into recv_generator() to make the new protocol-30 dir-handling logic easier. Wayne Davison 2007-07-08 06:25:51 +00:00
  • 6755a7d742 If we get an ndx that is 1 entry prior to an incremental flist's start, it refers to the file list's parent dir. Wayne Davison 2007-07-08 06:25:47 +00:00
  • 5459e693a3 - The sending side now sets the parent_ndx value in each file list. - Leave a 1-entry gap between incremental file lists so that we can use that index value to refer to the parent directory of each file list. - Set and use the new ndx_end value in the file list. The incremental recursion mode omits dirs in this value (except in the first list) since the generator will be using the new "gap" ndx value to process each parent dir. Wayne Davison 2007-07-08 06:25:42 +00:00
  • 24108eb854 - Increased the SUBPROTOCOL_VERSION to 4 due to the new dir-ndx logic. - Added ndx_end value to struct file_list. Wayne Davison 2007-07-08 06:25:36 +00:00
  • 4635fb9995 Avoid the prune-empty-dir code when cleaning a file list created by get_dirlist(). Wayne Davison 2007-07-07 20:43:14 +00:00
  • 9decb4d2ef Changed "count" to "used" in struct file_list since there can be empty items that make the count inaccurate (and the name somewhat deceiving). Wayne Davison 2007-07-07 20:22:05 +00:00
  • b3b326016a The length check in make_file() doesn't need to subtract pathname_len anymore, as the sender code never concatenates the F_PATHNAME() value with the dirname+basename string these days. Wayne Davison 2007-07-07 16:01:59 +00:00
  • 4bde45f60e Make the comment even better. Wayne Davison 2007-07-07 15:37:56 +00:00
  • 4fd842f98d Switching to GPL 3. Wayne Davison 2007-07-07 05:33:14 +00:00
  • f92f5b166e Tweaked a comment to remove a (really old) rsync version reference. Wayne Davison 2007-07-07 05:25:50 +00:00
  • 9b25ef35bd Switch the checking of preserve_[ug]id var to checking [ug]id_ndx var when the code is about to use the [ug]id_ndx value as an index (since this saves a memory reference). Wayne Davison 2007-07-02 22:11:23 +00:00
  • 7c73536c25 Use module_dir instead of lp_path(). Wayne Davison 2007-07-02 22:06:48 +00:00