Commit Graph

  • ca62acc3ca - Make use of the new ITEM_* flags to mention when things were updated locally instead of being updated remotely. - Added support for outputting 'a' in the itemized log-output (for future use in extended-attribute handling). Wayne Davison 2005-03-05 00:21:50 +00:00
  • cdf236aaf5 - Made the sock_{in,out} variables non-static. - Added hlink_list, a FIFO list of finished hard-link items. - Made get_redo_num() check for finished hard-link items and call the generator when they are found. This ensures that we finish all the hard-link items by the time the MSG_DONE is read and returned to the generator. - Added get_hlink_num() to read the new hlink_list. Wayne Davison 2005-03-05 00:21:48 +00:00
  • 9f2e3c3f52 - Changed hlink_list[] to store file-list indexes instead of pointers. - Made hard_link_one() non-static so that the generator can call it. Improved it to do itemized output. - Replaced do_hard_links() with hard_link_cluster(), which changes the hard-linking from a post-transfer loop into a per-cluster operation that occurs incrementally as the transfer updates (or finds unchanged) one item in the cluster. Wayne Davison 2005-03-05 00:21:44 +00:00
  • ee1d11c495 - Updated itemize() to handle sending of hard-link-name info. Made it non-static so the hard-link code can now output itemized messages. - Made the locally-changed items (such as dirs and symlinks) itemize using a new ITEM_LOCAL_CHANGE flag instead of the (renamed) ITEM_TRANSFER flag (formerly ITEM_UPDATING). - Improved the hard-link support by having a cluster of hard-linked files get processed as soon as we notice that a single item is already up-to-date, or it succssfully finishes being updated. - The hard-linking that occurs when using --link-dest will now be mentioned at higher levels of verbosity IFF %i is in the log- format. Wayne Davison 2005-03-05 00:21:42 +00:00
  • 669e76717c - Changed ITEM_UPDATING to ITEM_TRANSFER. - Added defines ITEM_HARD_LINKED, ITEM_LOCAL_CHANGE, ITEM_REPORT_XATTRS, and SIGNIFICANT_ITEM_FLAGS. - Changed the "next" var in struct hlink into an int. Wayne Davison 2005-03-05 00:21:39 +00:00
  • 4e107712f3 Mention latest bug fixes. Wayne Davison 2005-03-05 00:20:37 +00:00
  • 85aa57a7dd In read_iflags(), we need to set buf to an empty string. Wayne Davison 2005-03-04 18:01:16 +00:00
  • 58a14ed950 Got rid of some code in the main recv_files() loop by calling the new functions read_iflags() and maybe_log_item(). Wayne Davison 2005-03-04 16:54:08 +00:00
  • 165e6d446c Moved some code out of the main loop in send_files() into a new function called read_iflags() (which was made generic enough that the receiver could use it too). Also call the new maybe_log_item(). Wayne Davison 2005-03-04 16:53:26 +00:00
  • 1c3e3679ef Added maybe_log_item() for use by the sender and receiver. Wayne Davison 2005-03-04 16:52:00 +00:00
  • 8a513e55b0 Document the new value of %L. Wayne Davison 2005-03-04 16:11:09 +00:00
  • a314f7c155 Document latest format of %i. Wayne Davison 2005-03-04 16:08:58 +00:00
  • 9497b0d4e9 Call log_item() instead of log_recv(). Wayne Davison 2005-03-04 16:08:16 +00:00
  • b694f8a245 Call log_item() instead of log_send(). Wayne Davison 2005-03-04 16:08:02 +00:00
  • afc65a5acf - Replaced log_send() and log_recv() with log_item(). - Made log_formatted() and log_item() take an "hlink" arg that will be used to pass in a hard-link name for use in %L. Wayne Davison 2005-03-04 16:07:50 +00:00
  • 5f40615cd5 Use the new "the_file_list" global instead of our "the_flist" local. Wayne Davison 2005-03-04 15:57:14 +00:00
  • c6816b9444 Transformed the push/pop functions for the redo-list into more generic flist_num_{push,pop}() functions that can support other folks caching off file-list index numbers. Wayne Davison 2005-03-04 15:50:22 +00:00
  • 46e99b09b9 Added read_vstring() and write_vstring() to io.c instead of having this code in generator.c and receiver.c. Wayne Davison 2005-03-04 15:38:58 +00:00
  • af436313a0 - Got rid of the checking of msg_fd_in in read_timeout() -- it was only needed back when the generator was reading a separate redo pipe from the message pipe. - Fixed a potential data corruption in the data that the generator is sending: if a message comes in from the receiver, we now make sure that we can't put the forwarding of this message to the sender into the middle of a multiplexed-write record that the generator is trying to flush. Wayne Davison 2005-03-04 08:58:27 +00:00
  • d64e6f42b4 Use the new "the_file_list" global. Wayne Davison 2005-03-03 18:44:42 +00:00
  • a00628b335 - Set the new global "the_file_list". - Got rid of test of read_batch in an am_sender section since there is never a sender process for --read-batch. Wayne Davison 2005-03-03 18:44:06 +00:00
  • 33ab4ad879 Simplified whole_file variable checking. Wayne Davison 2005-03-03 02:58:48 +00:00
  • 99eb41b25f Improved some text in --compare-dest and --link-dest. Wayne Davison 2005-03-03 02:23:12 +00:00
  • e86ae6bc1f Don't kluge the value of statret for --whole-file. Wayne Davison 2005-03-03 01:50:43 +00:00
  • c3cbcfb8ef Moved the checks for --ignore-existing and --update higher in recv_generator() so that they don't trigger erroneously when --link-dest is specified. Wayne Davison 2005-03-03 01:33:51 +00:00
  • a1d23b5314 - Got rid of the SID_* flags -- use the ITEM_* flags directly. - If --compare-dest find a file that is not the same in attributes, we need to copy the file. Wayne Davison 2005-03-03 00:14:35 +00:00
  • d4d4890d4e Added ITEM_NO_DEST_AND_NO_UPDATE for use by the generator's itemize() function. Wayne Davison 2005-03-03 00:14:32 +00:00
  • 30e66e53de Fixed the --compare-dest docs. Wayne Davison 2005-03-02 18:01:23 +00:00
  • e224331729 When using multiple --compare-dest options, rsync should avoid copying a file that has an exact match in any of the dirs. Wayne Davison 2005-03-02 17:48:36 +00:00
  • 70b54e4e43 Fixed a bug in the --dry-run output when using --link-dest. Wayne Davison 2005-03-02 17:27:19 +00:00
  • 9ba463435b If the multi-dest loop falls back to the best_match index, we need to re-stat() the file to restore "st". Wayne Davison 2005-03-02 09:51:54 +00:00
  • 05ee48661c Tweaked the description for --rsync-path. Wayne Davison 2005-03-02 09:17:42 +00:00
  • aef9882581 A little more tweaking to the multi-dest option loop. Wayne Davison 2005-03-02 09:09:15 +00:00
  • 78bcddcc6a Mention that specifying "/dir/**" is a safer way than "/dir/" alone to ensure that files inside a dir are fully protected. Wayne Davison 2005-03-02 01:48:25 +00:00
  • 68e169ab4d Improved the description of --rsync-path. Wayne Davison 2005-03-01 23:02:23 +00:00
  • f62eaa24f1 Made the multi-FOO-dest loop a little nicer. Wayne Davison 2005-03-01 19:42:31 +00:00
  • d3e553b4bd Explicitly mention that "del." does include the trailing period. Wayne Davison 2005-03-01 19:17:27 +00:00
  • 3753975f48 Fixed two glitches Paul pointed out. Wayne Davison 2005-03-01 17:28:46 +00:00
  • 2d81114b23 Preparing for release of 2.6.4pre2 v2.6.4pre2 Wayne Davison 2005-03-01 06:22:19 +00:00
  • 472135e0bc Mention the latest changes. Wayne Davison 2005-03-01 06:05:23 +00:00
  • c60b7056b2 A few improvements to the new check_for_hostspec() function. Wayne Davison 2005-03-01 05:49:11 +00:00
  • 42ccb4c091 Made the argv/argc parsing a little nicer. Wayne Davison 2005-03-01 03:39:35 +00:00
  • b31c92edcc - Look for last '@' in a user@host spec. Wayne Davison 2005-03-01 03:39:32 +00:00
  • 08b018304f Removed section on parsing IPv6 literal addresses. Wayne Davison 2005-03-01 03:11:28 +00:00
  • d19320fdf6 Changed remote_filesfrom_file to filesfrom_host. Wayne Davison 2005-03-01 03:10:59 +00:00
  • 860236bf90 - Changes needed to handle new filesfrom_host variable. - Changes needed to use check_for_hostspec() in place of find_colon(). Wayne Davison 2005-03-01 01:16:03 +00:00
  • 4d3abf1360 Changes needed to use check_for_hostspec() in place of find_colon(). Wayne Davison 2005-03-01 01:15:59 +00:00
  • 305666bf59 - Changed find_colon() into check_for_hostspec(), extending it to understand the rsync:://HOST:PORT/PATH format, allowing all HOSTs to be IPv6 literal addresses enclosed in '[' and ']', and changing it to return the 3 parts of the spec separately (host, port, and path). - Relocated the code that handles the sanitation and validation of the files_from arg in order to make its placement a little more logical. - Replaced remote_filesfrom_file with filesfrom_host, which makes the value of the files_from variable more intuitive. Wayne Davison 2005-03-01 01:15:57 +00:00
  • b03c719f04 Enhanced the option-parsing failure mode to handle the situation where the parser didn't get a chance to parse the --files-from option yet, but we still need to know it was there in order to get the error message back to the client. Wayne Davison 2005-03-01 00:42:32 +00:00
  • 62f27e3c02 Made a couple sentences about rsync:// syntax clearer. Wayne Davison 2005-02-28 22:04:16 +00:00
  • 4dc67d5e30 Improved a couple sentences. Wayne Davison 2005-02-28 02:16:49 +00:00
  • 8ebdc9724e Say "rsync 2.6.4" instead of "protocol 29". Wayne Davison 2005-02-28 02:16:23 +00:00
  • 9e0582f9bf Tweaked a comment. Wayne Davison 2005-02-28 02:04:42 +00:00
  • 705de51a73 Improved do_lseek()'s failure message. Wayne Davison 2005-02-27 21:12:13 +00:00
  • 1a8e5c97eb Complain if the run-terminating keep-alive packets aren't what we expected. Wayne Davison 2005-02-27 20:50:07 +00:00
  • 55bb7fff14 Don't loop forever when the receiver is waiting around to be killed at EOF -- it should be a rapidly arriving event, so only hang around for 10 seconds, max., and then go ahead and report the "unexpectedly closed" error. Wayne Davison 2005-02-27 18:24:34 +00:00
  • 662bdcd4ac Make sure that allowed_lull will not be computed as 0 if io_timeout is 1. Wayne Davison 2005-02-27 18:09:17 +00:00
  • fef101a548 Improved a couple sentences. Wayne Davison 2005-02-27 18:01:32 +00:00
  • 18a11cfd48 - Made the calls to maybe_send_keepalive() happen at better intervals. - Call do_hard_links() with its new args. Wayne Davison 2005-02-27 09:02:32 +00:00
  • 0f80c3e886 Added 2 args to do_hard_links() so that it can call maybe_send_keepalive(). Wayne Davison 2005-02-27 09:02:29 +00:00
  • f122383179 Mention the backup fix for redone files with --inplace. Wayne Davison 2005-02-27 08:02:06 +00:00
  • e6bc6f4232 We need to turn off make_backups for the redo phase so that the inplace processing doesn't make a second backup. Wayne Davison 2005-02-27 07:50:43 +00:00
  • ac1cb9380d Tweaked an error message. Wayne Davison 2005-02-27 07:34:27 +00:00
  • 40df65fdb4 - Seems to me that sigusr2_handler() should call close_all() for the sake of MS Windows. - Improved some comments. Wayne Davison 2005-02-27 07:33:01 +00:00
  • cb2e1f18c2 One more comment fix. Wayne Davison 2005-02-26 22:14:40 +00:00
  • 0ecd03e396 Fixed comment. Wayne Davison 2005-02-26 22:02:38 +00:00
  • e6f5ac116b Improved a couple sentences. Wayne Davison 2005-02-26 21:48:12 +00:00
  • 051182cb75 Set kluge_around_eof to a -1 for the receiver's needs. Wayne Davison 2005-02-26 20:58:08 +00:00
  • 574c250093 If kluge_around_eof is < 0, we go into an msleep() loop instead of exiting. Wayne Davison 2005-02-26 20:58:05 +00:00
  • 8dad7fc6ea Explicitly set kluge_around_eof to a 1 when it is needed. Wayne Davison 2005-02-26 20:58:01 +00:00
  • b558728875 Added keep-alive checking during the directory-touching loop at the end of the processing. Wayne Davison 2005-02-26 20:43:14 +00:00
  • e777afad6f Set kludge_around_eof when the receiver is trying to read a potential keep-alive message that may never come. Wayne Davison 2005-02-26 20:21:12 +00:00
  • 87703a1b1f Improved the comment for kludge_around_eof. Wayne Davison 2005-02-26 20:21:08 +00:00
  • 981b202661 Added "set -x". Wayne Davison 2005-02-26 19:49:59 +00:00
  • 13725744fd Decided I like "set -x" after all. Wayne Davison 2005-02-26 19:47:43 +00:00
  • 363c3ece3a Don't allow keep-alive sending if --read-batch is enabled. Wayne Davison 2005-02-26 19:37:49 +00:00
  • 47780ddfef Mention the new keep-alive handling and the devices-size fix. Wayne Davison 2005-02-26 19:17:06 +00:00
  • 251f22b5d7 Fixed a line-ordering problem. Wayne Davison 2005-02-26 19:11:57 +00:00
  • 4e0fcd85ae Handle keep-alive messages at the end of the transfer when --delete-after is happening. Wayne Davison 2005-02-26 18:57:57 +00:00
  • 59faec8b8b - Moved all the file-deletion code here from flist.c and receiver.c. - Call maybe_send_keepalive() from delete_in_dir() so that a really long delete-pass won't timeout. - Renamed delete_files() -> do_delete_pass(). - Renamed delete_file() -> delete_item(). - Call get_dirlist() with its new arg. Wayne Davison 2005-02-26 18:03:49 +00:00
  • 32cbfe7b17 - Moved file-deletion code into generator.c. - Made filesystem_dev a global that the generator can set during its delete pass. - Fixed an off-by-one boundary check in send_directory(). - Added an arg to get_dirlist() so that delete_in_dir() can call it efficiently. Wayne Davison 2005-02-26 18:03:46 +00:00
  • f08ca43472 Moved the delete-after support into generator.c. Wayne Davison 2005-02-26 18:03:42 +00:00
  • 8eb6cf784b Moved the delete-before support into generator.c. Wayne Davison 2005-02-26 18:03:40 +00:00
  • 7433d73adc - Moved the initialization of "itemizing", "maybe_PERMS_REPORT", and "code" from recv_generator() to generate_files() so that they don't get recomputed for every file (we pass them as args now). - Allow protocols < 29 to call maybe_send_keepalive() so that we can try to flush the output buffer if things are slow (though we can't send a keep-alive packet without protocol_version >= 29). Wayne Davison 2005-02-26 06:52:55 +00:00
  • 3221f451a0 Calling maybe_send_keepalive() for protocol_version < 29 is now supported, though we can only try to flush the output buffer if we're in a lull. Wayne Davison 2005-02-26 06:43:15 +00:00
  • 9e4536748d - Moved the description of '%i's output into the rsync manpage. - A few minor tweaks to the "log format" setting. Wayne Davison 2005-02-26 05:18:03 +00:00
  • ea67c71505 - We now mention what "%i" outputs under --itemize-changes. - Improved the description of --log-format. Wayne Davison 2005-02-26 05:16:26 +00:00
  • ea38b5af72 Mention the change in when --log-format outputs and how it interacts with --verbose. Wayne Davison 2005-02-26 05:11:46 +00:00
  • 89d19eedef Call log_delete() from delete_file() anytime that DEL_TERSE is not set (we used to only call if verbose or log_format were also set). Wayne Davison 2005-02-26 04:50:55 +00:00
  • 41b5b5e756 The log_delete() function may now be called even when the client is not getting delete messages, which ensures that the daemon's log- file output includes all deletions when per-file logging is enabled. Wayne Davison 2005-02-26 04:49:30 +00:00
  • a3e1363aaa Make sure that our protocol-28 compatibility is OK. Wayne Davison 2005-02-26 03:22:05 +00:00
  • 2217b30adf Fixed a problem sending include rules to an older rsync. Wayne Davison 2005-02-26 02:56:30 +00:00
  • 9ac2395bf0 - Call maybe_send_keepalive() if timeouts are enabled. - Use the new ignore_timeout variable. Wayne Davison 2005-02-25 22:01:36 +00:00
  • 9e2409ab22 - Added variable "ignore_timeout" that lets the generator tell us to ignore a timeout without turning off the timeout-related time-keeping that the keep-alive processing needs. - Added a new function: maybe_send_keepalive(). Wayne Davison 2005-02-25 21:58:13 +00:00
  • 8e6cf5d189 Accept the new keep-alive (no-op) packet. Wayne Davison 2005-02-25 21:56:00 +00:00
  • d17190df44 Don't add st_size from a device to stats.total_size. Wayne Davison 2005-02-25 20:28:27 +00:00
  • fbe5eeb831 Mention how --backup sometimes implies --omit-dir-times. Wayne Davison 2005-02-25 17:10:48 +00:00
  • ed9d969c4c Use the new am_starting_up value in who_am_i(). Wayne Davison 2005-02-25 17:08:57 +00:00
  • 7f2a1f651e Got rid of kluged value for am_sender, and instead added a new variable named am_starting_up that is non-zero during the option parsing. This lets the who_am_i() routine output a better value for debugging info that is output during the option parsing. Wayne Davison 2005-02-25 17:08:31 +00:00
  • bbbb44ee0f Fixed some typos. Wayne Davison 2005-02-25 02:30:38 +00:00