Commit Graph

  • c1759b9fa2 Changed %i to output '>' for a local copy. Wayne Davison 2005-03-30 16:35:01 +00:00
  • 9c63d83d3d Got rid of a useless extern. Wayne Davison 2005-03-30 16:33:41 +00:00
  • 1ed91a04fe - Fixed a potential crash if the receiver couldn't open the basis file and the sender (possibly via a batch) tells us to use basis data. - Enhanced the batched-update skipping message to indicate what phase is being skipped. Wayne Davison 2005-03-29 22:05:33 +00:00
  • 154cdaaa40 - Warn about missing batched updates the generator wants but the batch doesn't have. - Tweaked the "skipping ..." message that is output for already- applied batched updates. Wayne Davison 2005-03-29 19:49:40 +00:00
  • 33c4b445ef Split report() into handle_stats() and output_report() so that (1) the report happens after all --delete-after activity has ceased when pulling, and (2) a batch-file created when pushing gets the stats values written out prior to any end-of-run keep-alive packets. Wayne Davison 2005-03-29 11:11:35 +00:00
  • 53135fe89a Changed maybe_emit_filelist_progress() and emit_filelist_progress() to take an integer count instead of a struct file_list so that we can pass in a file-list-count offset for delete's separate calls to send_directory(). Wayne Davison 2005-03-29 10:57:31 +00:00
  • 083acd496d Turn off do_progress during the file-update phase so that --delete-during and --fuzzy don't get any superfluous " N files..." lines output in the middle of the processing. Wayne Davison 2005-03-29 10:41:26 +00:00
  • 00348fd793 Preparing for release of 2.6.4pre4 v2.6.4pre4 Wayne Davison 2005-03-29 06:18:24 +00:00
  • ddb6fc696b Improved several items and preparing for final 2.6.4 release. Wayne Davison 2005-03-29 06:15:47 +00:00
  • f7e48a5cb8 Add data for 2.6.4. Wayne Davison 2005-03-29 06:15:08 +00:00
  • 70352269ba If --delay-updates wasn't specified, write out two -1 indexes at the same time to avoid a useless round-trip delay for an empty delay-updates phase. Wayne Davison 2005-03-29 01:04:20 +00:00
  • 0b94147928 Added --protocol and made some batch-file improvements. Wayne Davison 2005-03-28 20:54:06 +00:00
  • da9f59264f Added --protocol to --help output. Wayne Davison 2005-03-28 20:40:25 +00:00
  • 96b7b48efa Some temporary code for 2.6.4pre3 compatibility (which can be safely removed for the next release). Wayne Davison 2005-03-28 17:29:27 +00:00
  • aea4bf2894 Chaging ITEM_UNUSED back to ITEM_DUMMY_BIT for now -- we'll need to get rid of it later on. Wayne Davison 2005-03-28 17:08:47 +00:00
  • 855ef72f3f Changed ITEM_DUMMY_BIT to ITEM_UNUSED. Wayne Davison 2005-03-27 05:58:40 +00:00
  • 98dc857b32 Got rid of temporary code that detected and rejected older 2.6.4 pre-release versions. Wayne Davison 2005-03-27 05:58:38 +00:00
  • 94af17a6eb Got rid of temporary code that set the ITEM_DUMMY_BIT. Wayne Davison 2005-03-27 05:58:36 +00:00
  • 00fd35482e --compress is now saved in a batch's option-state flags. Wayne Davison 2005-03-27 05:49:24 +00:00
  • cc3e0770bc Decided that the '<' and '>' output in the %i format were the opposite of what they should be. Wayne Davison 2005-03-27 05:32:36 +00:00
  • e7f7064cc5 - Fixed a bug in the saving of the --dirs option's state. - Added the saving of the --compress option's state. - Deal with the xfer_dirs var in a better way for pre-29 batches. Wayne Davison 2005-03-27 05:02:49 +00:00
  • 7b759fe0df Mention that --dry-run no longer conflicts with the batch options. Wayne Davison 2005-03-25 16:45:58 +00:00
  • 254ee3baab - Don't complain if --dry-run is specified with --read-batch or --write-batch. - If --write-batch is combined with --dry-run, just disable --write-batch (that avoids trying to create a batch file and tells the user what would be transferred). Wayne Davison 2005-03-24 16:41:16 +00:00
  • f957e8fdf9 If --dry-run is enabled with --read-batch, we must discard the transfer data. Wayne Davison 2005-03-24 16:38:34 +00:00
  • 822012eea9 List /etc instead of /, but only if it exists and is readable. Wayne Davison 2005-03-23 16:04:17 +00:00
  • bb21ecac5b Mention when we run fakeroot. Wayne Davison 2005-03-18 02:10:34 +00:00
  • 648859bda2 If we're not root and the "fakeroot" command is available, use it to re-run the script while pretending to be root. Wayne Davison 2005-03-18 02:07:25 +00:00
  • f328e0f3a8 Set a maximum distance-measure that find_fuzzy() will accept. Wayne Davison 2005-03-17 08:59:48 +00:00
  • 6012eaa183 Fixed a problem with the stripping of the .bak/.old/.orig suffixes in find_filename_suffix(). Wayne Davison 2005-03-17 08:45:36 +00:00
  • da2a6c1f1c Fixed the -r kluge sent for pre-2.6.4 --list-only support. Wayne Davison 2005-03-17 00:52:33 +00:00
  • 0438f100ae We need to run our post-processing activities after the end of the receiver's delay-update processing. Wayne Davison 2005-03-17 00:41:18 +00:00
  • b95ad9ac55 Mention one other recent change. Wayne Davison 2005-03-16 02:50:00 +00:00
  • 828a256123 Preparing for release of 2.6.4pre3 v2.6.4pre3 Wayne Davison 2005-03-16 01:12:44 +00:00
  • ebf447ac81 Changed error message for incompatible 2.6.4 pre-release versions. Wayne Davison 2005-03-16 01:06:33 +00:00
  • 124f349ea1 Document error messages 6 and 25. Wayne Davison 2005-03-15 23:23:45 +00:00
  • 26718401fb Added the error message for RERR_LOG_FAILURE and used it when the daemon can't open the log-file. Wayne Davison 2005-03-15 23:23:41 +00:00
  • f463e20753 Added RERR_LOG_FAILURE define. Wayne Davison 2005-03-15 23:23:39 +00:00
  • 1129070514 - Made read_item_attrs() detect and reject a pre1/pre2 rsync (used by both the sender and the receiver). - Added an extra phase to the end of the transfer to better handle delayed updates that have hard links. Wayne Davison 2005-03-15 19:19:44 +00:00
  • ac3f7b81f8 Added an extra phase to the end of the transfer to handle delayed updates that have hard links. Wayne Davison 2005-03-15 19:19:41 +00:00
  • 62f9573fb3 - Added an extra phase to the end of the transfer to better handle delayed updates that have hard links. - Send the new ITEM_DUMMY_BIT to the sender so that we can figure out if the other side is pre1 or pre2 and let the receiver reject it. Wayne Davison 2005-03-15 19:19:38 +00:00
  • 6d0e5d2e62 Added ITEM_DUMMY_BIT and moved a few other 'ITEM_*'s around. Wayne Davison 2005-03-15 19:19:36 +00:00
  • 8b48bf1154 Tweaked the end-of-phase code. Wayne Davison 2005-03-15 17:30:56 +00:00
  • 42be53201f Handle --delay-updates at the end of the first phase. Wayne Davison 2005-03-15 17:30:52 +00:00
  • c7791b8cb2 Mention the index number for an "invalid packet at end of run". Wayne Davison 2005-03-15 17:30:50 +00:00
  • 7e9059d60f Fixed a just-introduced crash bug in the --fuzzy processing. Wayne Davison 2005-03-14 22:22:42 +00:00
  • f3ebe1a77e A simple test to ensure that fuzzy processing is working. Wayne Davison 2005-03-14 22:17:25 +00:00
  • 301fb56ce9 Split the conditional-directory sending out of send_file_name() into a new function: send_if_directory(). This lets the code that is recursively descending through the directories make its list of a dir's contents and close the DIR handle before recursing into the subdirs. Also, the "recurse" var is just true/false once again. Wayne Davison 2005-03-14 17:30:15 +00:00
  • aa7a6e878b The "recurse" value is back to being just 1 or 0 (true or false). Wayne Davison 2005-03-14 17:30:13 +00:00
  • 0a39837a62 Got rid of "fudged_recurse". Wayne Davison 2005-03-14 17:30:10 +00:00
  • b2e8a9b293 Got rid of an unused extern. Wayne Davison 2005-03-14 17:06:08 +00:00
  • a98ad81760 Got rid of some code in f_name_cmp() that tried to make all the dirname pointers to equivalent strings have identical pointers. Wayne Davison 2005-03-14 03:36:56 +00:00
  • ccc51c8331 The --fuzzy code now handles a file->dirname that has an identical string as another file without being an identical pointer. Wayne Davison 2005-03-14 03:35:40 +00:00
  • ee171c6da9 Document the latest %i output. Wayne Davison 2005-03-13 05:36:13 +00:00
  • d5609e969d Output a '*' at the start of the %i string when deleting. Wayne Davison 2005-03-13 05:35:49 +00:00
  • 927c806841 - Improved a couple error messages. - Improved a function name. Wayne Davison 2005-03-13 05:34:00 +00:00
  • 2da9dda1c0 Some misc. improvements (I hope). Wayne Davison 2005-03-12 23:54:05 +00:00
  • 3117bc16a5 Improved two sentences. Wayne Davison 2005-03-12 23:52:18 +00:00
  • 717b04306a Tweaked the name of a variable. Wayne Davison 2005-03-12 23:52:08 +00:00
  • 271220c542 Mention --copy-dest. Wayne Davison 2005-03-11 19:23:09 +00:00
  • 566a874141 Re-enabled the --copy-dest part of the test. Wayne Davison 2005-03-11 17:36:05 +00:00
  • 967866d4df Added --copy-dest logic, and improved the updating of --compare-dest and --link-dest files that are up-to-date but have differing attributes. Wayne Davison 2005-03-11 17:36:03 +00:00
  • 1de3e99bc5 Added --copy-dest logic. Wayne Davison 2005-03-11 17:35:59 +00:00
  • 3e13004b6b Tweaked the comment on copy_file(). Wayne Davison 2005-03-11 17:35:57 +00:00
  • 2f03ce67d6 Document --copy-dest. Wayne Davison 2005-03-11 17:35:54 +00:00
  • b9232d45eb - Fixed the reading of the fuzzy xname from the socket. - Call read_item_attrs() with its new arg. Wayne Davison 2005-03-10 00:06:01 +00:00
  • 6087ef2a84 - Changed read_item_attrs() to return the length of the xname string. - Tweaked the order of the args to write_item_attrs(). Wayne Davison 2005-03-10 00:05:58 +00:00
  • 1f1d368ad5 - Improved the error-checking for some delete_item() calls. - Move the non-regular-file delete-check above the alt-basis check where it belongs. - Keep track of the real statret and real stat-struct for certain alt-basis scenarios (e.g. partial-dir and fuzzy) so that we send the right itemized change flags. Wayne Davison 2005-03-09 23:46:28 +00:00
  • dd18526e5b Mention the latest protocol-29 changes. Wayne Davison 2005-03-09 18:55:09 +00:00
  • 4d53c4dd46 We now handle the reading and writing of extra basis-file info: the fnamecmp_type byte, and the extra name (currently used for fuzzy processing and hard-link status). Wayne Davison 2005-03-09 18:54:19 +00:00
  • 9e4a8d29b5 Got rid of the name-pipe, so we now read the fnamecmp_type data over the socket for protocol >= 29, or handle it like the old days for older protocol versions. This means that we now validate this extra data for safety (such as the fuzzy filename). Wayne Davison 2005-03-09 18:54:16 +00:00
  • ef20efcbb6 Made itemize() output the fnamecmp_type and the fuzzy name based on the new ITEM_BASIS_TYPE_FOLLOWS and ITEM_XNAME_FOLLOWS flags. Got rid of the name-pipe to the receiver. Wayne Davison 2005-03-09 18:54:12 +00:00
  • c70e07d9ac Got rid of the name-pipe from the generator to the receiver. Wayne Davison 2005-03-09 18:54:09 +00:00
  • b7d4d28bb3 When itemizing, we now set ITEM_LOCAL_CHANGE and ITEM_XNAME_FOLLOWS. Wayne Davison 2005-03-09 18:54:06 +00:00
  • 9a6ed83f2c - Made an overflow in read_vstring() return an error instead of dying. - Got rid of a flush kluge that was needed for the name-pipe. Wayne Davison 2005-03-09 18:54:02 +00:00
  • fd84673e54 Handle the new way that 'c' and 'h' get output by "%i". Wayne Davison 2005-03-09 18:53:58 +00:00
  • 57b12568e6 Complain if a feature that requires protocol 29 doesn't get it. Wayne Davison 2005-03-09 18:53:55 +00:00
  • f9a9f54720 Made the dest_option string non-static. Wayne Davison 2005-03-09 18:53:53 +00:00
  • 3019a9bafd Changed some of the ITEM_* defines. Wayne Davison 2005-03-09 18:53:49 +00:00
  • 278e3d4f6e Mention the latest bug-fix. Wayne Davison 2005-03-09 04:00:45 +00:00
  • 9b9dd06894 We need to mention any change to a directory, not just a time change. Yeah, this isn't very consistent with how files are treated, but it's backward compatible. Wayne Davison 2005-03-09 04:00:20 +00:00
  • 1f7e29b99c Fixed the change-report output for a directory that has no write permissions. Wayne Davison 2005-03-09 03:49:07 +00:00
  • c2f0e6e5e3 Backward compatibility fix in read_iflags() (for protocols < 29). Wayne Davison 2005-03-09 02:25:34 +00:00
  • c2b11ba017 Backed out the hack that reversed ITEM_REPORT_XATTRS with ITEM_TRANSFER. Yes, it allowed some kludge code that made backward compatibility seamless, but it made it impossible to remove the hack in the future. This way, the backward compatibility is just slightly inaccurate in the display of the first letter in the %i output, and the only hack can be safely removed without causing problems. Wayne Davison 2005-03-06 23:37:42 +00:00
  • f75a53e71b - When --max-delete is exceeded, we now count how many deletions would have happend, warn about the number skipped, and set io_error to IOERR_DEL_LIMIT. - When dry_run > 1 (which indicates that the destinationdir is missing), skip deletions in that dir. This fixes a bug in a copy that is creating the destination dir w/--delete enabled. Wayne Davison 2005-03-05 18:58:42 +00:00
  • 054abde25f Handle new IOERR_DEL_LIMIT bit in io_error. Wayne Davison 2005-03-05 18:58:38 +00:00
  • 24cecf1365 Define the message for RERR_DEL_LIMIT. Wayne Davison 2005-03-05 18:58:35 +00:00
  • 821ff7f49a Added RERR_DEL_LIMIT. Wayne Davison 2005-03-05 18:58:32 +00:00
  • ff3d3c32d5 Added IOERR_DEL_LIMIT. Wayne Davison 2005-03-05 18:58:29 +00:00
  • 3b2ef5b11c Mention that --max-delete must be non-zero. Wayne Davison 2005-03-05 18:58:26 +00:00
  • 0394e34a69 Moved the end_progress() call from match.c to sender.c so that we report progress on 0-length files when pushing files (the receiver already called it, so we already produced progress on a 0-length file when pulling). Wayne Davison 2005-03-05 17:51:23 +00:00
  • 56efa56474 Fixed the elapsed time reported for 0-length files. Wayne Davison 2005-03-05 17:49:46 +00:00
  • ed7e79553e Don't try to determine the phase we're in by looking at the value of csum_length -- it might have been computed to be SUM_LENGTH. Instead, look at the "phase" variable directly. Wayne Davison 2005-03-05 16:42:52 +00:00
  • dec71e94f3 Added a hack that uses the ITEM_REPORT_XATTRS bit (which is the old ITEM_UPDATING bit) to make us compatible when sending/receiving bits to/from an earlier pre-release. Wayne Davison 2005-03-05 04:34:06 +00:00
  • ac4f91a5ee Added a hack that sets the ITEM_REPORT_XATTRS bit (which is the old ITEM_UPDATING bit) when ITEM_TRANSFER or ITEM_LOCAL_CHANGE is set. This lets us interact compatibly when sending itemized bits to an earlier pre-release. Wayne Davison 2005-03-05 04:34:04 +00:00
  • e957626347 Swapped the bit-values for ITEM_TRANSFER and ITEM_REPORT_XATTRS. This lets us be more compatible with the earlier pre-releases with a better heuristic for backward-compatible itemized bits. Wayne Davison 2005-03-05 04:34:01 +00:00
  • b4875de45c Improved the description of when "h" is output by %i. Wayne Davison 2005-03-05 00:34:02 +00:00
  • 2cfe44eee4 Turned on -i for itemized output. Wayne Davison 2005-03-05 00:23:55 +00:00
  • fad3dc421c - Updated to handle the new ITEM_* flags. - Changed read_iflags() to read/write a suffixed hard-link name. Wayne Davison 2005-03-05 00:21:59 +00:00
  • 22907b6bd9 - Updated to handle the new ITEM_* flags. - Send MSG_SUCCESS for hard-linked files when -H was specified. Wayne Davison 2005-03-05 00:21:56 +00:00
  • 3485ae8321 A few minor tweaks to improve two error messages and make better use of the "the_file_list" global. Wayne Davison 2005-03-05 00:21:54 +00:00