Commit Graph

  • d762dfe94b Mention a couple more changes. Wayne Davison 2007-02-17 17:05:22 +00:00
  • c4750c2a07 Make sure that a newly-created destination directory gets the same rules applied to it as other newly-created directories when --perms wasn't specified. Wayne Davison 2007-02-17 17:00:40 +00:00
  • 3831f06319 - Moved the second send_extr_file_list() call to a better spot. - Moved the FILECNT_LOOKAHEAD define into rsync.h. Wayne Davison 2007-02-16 02:47:12 +00:00
  • be91bd81b8 Improved the incremental sending of file lists in two ways: (1) when the sender gets an index of a file to send, we make sure to send enough future file-list data relative to the new cur_flist value before we send the data for the file transfer (ensuring that the generator gets the data in a more timely manner), and (2) the generator flushes the output socket after each file-list object has completed its scan so that the sender knows in a more timely manner that more list data is needed. Wayne Davison 2007-02-16 02:35:31 +00:00
  • 2a40b503c0 Make sure that the am_server variable is non-zero after parsing the options we received over the socket. (Thanks, Matt!) Wayne Davison 2007-02-16 01:20:29 +00:00
  • ba2133d6ad Further modifications to the copyright comment section. Wayne Davison 2007-02-04 14:54:58 +00:00
  • 4f47fec04d Added a license comment to the top of the file. Wayne Davison 2007-02-03 22:46:57 +00:00
  • ab3d6c6025 The "ndx" variable now holds the unique, over-the-wire value, not a value that is relative to the cur_flist object. This makes the variable consistent with how the sender and the receiver use it. Wayne Davison 2007-02-03 05:13:17 +00:00
  • 121bfb2b4d The ndx arg passed to increment_active_files() is now the unique, over-the-wire value, making it consistent with the ndx arg that is passed to decrement_active_files(). Wayne Davison 2007-02-03 05:13:14 +00:00
  • 100018b7cd Mention the year 2007 in the copyright declarations. Wayne Davison 2007-01-31 21:46:49 +00:00
  • 1ff66d4c68 Changed the main file-scan loop to not check for redo items when in incremental recurse mode -- it is enough to check for them when changing from one file-list to another. Wayne Davison 2007-01-31 21:45:42 +00:00
  • 87a34ce56a The code can now set cur_flist to NULL sooner than it used to, so the flist_for_ndx() routine needs to work when cur_flist is NULL. Wayne Davison 2007-01-30 03:57:55 +00:00
  • 04c722d5e0 - Renamed done_cnt -> msgdone_cnt. - Changed increment_active_files() to call check_for_finished_files() and to avoid calling both io_flush() and read_msg_fd() in the same iteration of a loop (since the former may have called the latter). Wayne Davison 2007-01-30 03:57:52 +00:00
  • 7730114b30 Moved the code that checks for finished file-lists, for finished "redo" sends, and finished hard-links into check_for_finished_files(), a new function that takes the place of check_for_finished_hlinks(). This lets us signal the sender more rapidly when a file-list is done (which ensures that it sends us more work to do in a timely manner), and also avoids two potential deadlocks in the old code. Wayne Davison 2007-01-30 03:57:48 +00:00
  • 7a2fa0c2d3 Changed how send_extra_file_list() checks if we have enough future work. Wayne Davison 2007-01-30 03:57:45 +00:00
  • 4eeaa16253 Improved a sentence. Wayne Davison 2007-01-30 03:37:47 +00:00
  • 8dca155fca Some improvements from Matt. Wayne Davison 2007-01-28 06:39:52 +00:00
  • 2a5df86299 - Fixed a potential hang bug in wait_for_receiver() that could occur if the io_flush() call happened to read the last message from the receiver, causing the read_msg_fd() call to deadlock. - Fixed an error-looping problem when the server-side receiver failed to send a message down the error-msg pipe: we no longer try to send a new error about this new failure down the same failing pipe. - Make sure that we stop any deferring of forwarded messages in the generator when we are exiting with an error. Wayne Davison 2007-01-27 16:30:33 +00:00
  • 3ea6e0e7a1 Changed the variable "incremental" to "inc_recurse". Wayne Davison 2007-01-27 14:56:09 +00:00
  • 051ad69634 Improved the talk of --hard-link improvements. Wayne Davison 2007-01-27 14:53:10 +00:00
  • 744e63fb2a More extern tweaking. Wayne Davison 2007-01-27 14:37:53 +00:00
  • cc7b86bf9b The last MSG_DONE from the receiver to the generator is now followed by the stats.total_read value so that the generator can set its value to that of the receiver. This makes log_exit() log the right value when we're on the server side. Wayne Davison 2007-01-27 14:34:15 +00:00
  • 8c18ebe81d Got rid of unused externs. Wayne Davison 2007-01-27 14:26:19 +00:00
  • 33689f4803 Added an extra paragraph to the --link-dest option to make it more explicit that it is best used with an empty destination hierarchy. Wayne Davison 2007-01-23 15:34:43 +00:00
  • 424d369179 Paul's patch to silence some 64-bit compiler warnings. Wayne Davison 2007-01-23 15:24:36 +00:00
  • d0221f1d2b Fixed handling of "redo" items in protocol 30. Wayne Davison 2007-01-21 14:51:52 +00:00
  • 3be97bf931 - Make sure that we can't write via io_flush() when msg_fd_in is temporarily set to -1. - Got rid of the msg2genr message cache. Wayne Davison 2007-01-20 22:10:14 +00:00
  • 4afab31607 We need to call msg2sndr_flush() in read_msg_fd() now. Wayne Davison 2007-01-20 20:19:24 +00:00
  • be21e29c35 Make sure defer_forwarding_messages is set when msg_fd_in gets set to -1. Wayne Davison 2007-01-20 19:56:03 +00:00
  • c5b6e57a13 Fixed some typos Matt found. Wayne Davison 2007-01-20 08:42:53 +00:00
  • ca947dea3e Moved the code that adds each file's length to stats.total_size so that the delete code doesn't change the value. Wayne Davison 2007-01-10 01:49:35 +00:00
  • 2aea85ab54 Removed a couple items (one complete, one that we don't need). Wayne Davison 2007-01-09 20:03:34 +00:00
  • 05a41409b1 Mention that --prune-empty-dirs forces a non-incremental recursive scan. Wayne Davison 2006-12-29 14:17:26 +00:00
  • 7a28d18448 If prune_empty_dirs is set, don't set incremental. Wayne Davison 2006-12-29 14:17:21 +00:00
  • 1e05b590c4 Fixed a typo and improved a sentence. Wayne Davison 2006-12-29 01:22:51 +00:00
  • ce5fddc3ed Added a sleep so that the --delete-delay action will always tweak the directory time, and reveal any lack of dir-time touch-up. Wayne Davison 2006-12-29 00:56:25 +00:00
  • fd3f5af2aa - Put directory retouching code into a separate function that is now called for all our touch-up needs. - Fixed a problem with --delete-delay interfering with the directory-time touch-up in incremental mode. Wayne Davison 2006-12-29 00:55:28 +00:00
  • dde5b77226 - My use of readfd_unbuffered() in read_msg_fd() really needed to be readfd() so that the buffer is never partially filled. - Make sure that msg2genr_flush() does not flush any messages while the flist-forwarding is active. - Changed io_flush() to honor its flush_it_all arg again. Wayne Davison 2006-12-29 00:12:42 +00:00
  • f845ef7dec An incremental-recursion transfer can't switch from delete-delay to delete-after. Wayne Davison 2006-12-28 19:02:01 +00:00
  • 9ae7a2cddb Use write_ndx() and read_ndx(). Wayne Davison 2006-12-28 18:49:13 +00:00
  • 8a65e0ce00 Added write_ndx() and read_ndx(), functions that allow us to transmit fewer bytes when exchanging the file-list index values. Wayne Davison 2006-12-28 18:49:08 +00:00
  • 98b1689dcb Output a file-list message when verbose and using incremental recursion mode. Wayne Davison 2006-12-28 18:43:20 +00:00
  • 012d1a01f5 Mention incremental recursion and change to --delete. Wayne Davison 2006-12-28 16:40:24 +00:00
  • d9f46544a3 Document the incremental recursion algorithm and the change in the --delete default. Wayne Davison 2006-12-28 16:37:01 +00:00
  • 42c6b13901 Restored the calling of send_file_entry() back to send_file_name() (since the reason I had separated it no longer exists). Wayne Davison 2006-12-28 15:43:30 +00:00
  • f1482c3391 Assign the owner and group using F_OWNER() and F_GROUP(). Wayne Davison 2006-12-28 09:42:48 +00:00
  • 5bb7348509 - Define F_OWNER() and F_GROUP() to be used for assigning the UID and GID. - F_UID() is now defined to return a uid_t value. - F_GID() is now defined to return a gid_t value. Wayne Davison 2006-12-28 09:42:44 +00:00
  • 4c9d5fef07 Repositioned a misplaced assignment. Wayne Davison 2006-12-28 08:57:25 +00:00
  • 5607803376 - Added a sleep to make sure that the preservation of the mtime on implied directories is working. Wayne Davison 2006-12-28 07:54:47 +00:00
  • 76e0a49efe Handle slight differences in the output of protocol 30's incremental mode. Wayne Davison 2006-12-28 07:54:44 +00:00
  • 76a1013cc6 Use --delete-delay instead of --delete-after. Wayne Davison 2006-12-28 07:54:41 +00:00
  • 496c809f8c - Made match_uid(), match_gid(), recv_user_name(), and recv_group_name() public functions. - Made add_uid() and add_gid() return the name or NULL. Wayne Davison 2006-12-28 07:54:37 +00:00
  • 3ac830b9f9 A few minor tweaks to handle the newest variable names. Wayne Davison 2006-12-28 07:54:34 +00:00
  • f3d6d4800b Handle the new incremental-recursion mode. Wayne Davison 2006-12-28 07:54:31 +00:00
  • 8ef246e0b5 - Handle the new incremental-recursion mode. - Changed some function names to make them more consistent. Wayne Davison 2006-12-28 07:54:27 +00:00
  • c7e6f84f89 New functions, variables, and file-list code to support the new incremental-recursion mode. Wayne Davison 2006-12-28 07:54:23 +00:00
  • fe04532ad2 New support function: change_local_filter_dir(). Wayne Davison 2006-12-28 07:54:19 +00:00
  • e4b619b46d - Choose --delete-before or --delete-during depending on protocol version. - Set incremental-recursion mode, if possible. - Protocol 30 gets generator->sender messages enabled. Wayne Davison 2006-12-28 07:54:16 +00:00
  • 9ec3828b03 Some new defines for incremental-recursion mode. Wayne Davison 2006-12-28 07:54:13 +00:00
  • e0e3203156 - Changes to handle new default of --delete-during for --delete. - Allow -H to be repeated. Wayne Davison 2006-12-28 07:54:10 +00:00
  • edb977215b Only append_mode > 0 now indicates option is enabled. Wayne Davison 2006-12-28 07:54:07 +00:00
  • 18233a170e Only sparse_files > 0 now indicates option is enabled. Wayne Davison 2006-12-28 07:54:04 +00:00
  • 283887d777 Neaten up use of uid_t/gid_t variable types. Wayne Davison 2006-12-28 07:08:13 +00:00
  • c2f0e4d965 Don't include MATCHFLG_PERISHABLE in CVS-exclude handling unless we're talking protocol 30 or above. Wayne Davison 2006-12-28 06:27:22 +00:00
  • 8576397c3e Fix the building of mkrounding$(EXEEXT) when building outside the source directory (provided by Art Haas). Wayne Davison 2006-12-27 21:40:16 +00:00
  • c09af06d0c Made the int_byte_cnt[] array 75% smaller. Wayne Davison 2006-12-27 17:43:51 +00:00
  • ded73ed90f Ignore all conftest* items, as Matt suggested. Wayne Davison 2006-12-27 17:36:57 +00:00
  • f335eb1f83 Fix usage message. Wayne Davison 2006-12-26 05:56:38 +00:00
  • 7afa34fd27 Test --only-write-batch option. Wayne Davison 2006-12-26 05:29:05 +00:00
  • 1f56188f8c Can just test ignore_errors w/o lp_ignore_errors(module_id) now. Wayne Davison 2006-12-25 17:49:23 +00:00
  • 3162ea6f67 Set ignore_errors variable based on lp_ignore_errors(module_id). Wayne Davison 2006-12-25 17:49:19 +00:00
  • 327c559aff Improved the new --pasword-file error message. Wayne Davison 2006-12-24 06:13:08 +00:00
  • 99effefc81 Fixed a thinko in the last news item. Wayne Davison 2006-12-24 05:47:21 +00:00
  • e8dad39518 Mention checking of --password-file's use. Wayne Davison 2006-12-24 01:30:44 +00:00
  • 09a54c399c Make the --password-file option's summary even better. Wayne Davison 2006-12-24 01:30:24 +00:00
  • 9586e59370 Improved the docs for the --password-file option. Wayne Davison 2006-12-24 00:58:30 +00:00
  • ce455b03e7 Improved the summary of the --password-file option. Wayne Davison 2006-12-24 00:58:24 +00:00
  • a39da29ac5 If the user specified --password-file without using daemon mode, complain and die. Wayne Davison 2006-12-24 00:58:21 +00:00
  • 794a0b6c25 Make use of the SHORT_SUM_LENGTH define. Wayne Davison 2006-12-23 23:57:16 +00:00
  • 1b81f797a2 Fixed a problem with the output of %f for non-daemon rsyncs. Wayne Davison 2006-12-23 20:48:29 +00:00
  • 889ae39d7a Mention the %f fix. Wayne Davison 2006-12-23 20:46:33 +00:00
  • 5f4e991c70 Fixed the item numbers in the regex comment. Wayne Davison 2006-12-20 00:50:17 +00:00
  • c96f6eb584 Call SIGACTION() instead of signal(). Wayne Davison 2006-12-18 07:24:24 +00:00
  • e10664c5e8 Moved the write_stream_flags() call from io.c into main.c so that it gets called before the transfer starts (thus ensuring that it can write out un-tweaked values of preserver_[ug]id vars). Wayne Davison 2006-12-18 06:56:30 +00:00
  • 99a957d3f4 Renamed flist_extra_cnt to file_extra_cnt. Wayne Davison 2006-12-18 06:56:26 +00:00
  • 658a63694b Got rid of the "tweaked" versions of the uid and gid vars. Wayne Davison 2006-12-18 06:56:23 +00:00
  • 30e50494bb Tweaked the output a little. Wayne Davison 2006-12-18 06:41:00 +00:00
  • 719985cb9c A few more minor tweaks. Wayne Davison 2006-12-17 04:42:33 +00:00
  • 2d2414f39e - We now define int16 and uint16. - Make use of the [u]int{16,32,64}_t types, if they're around. Wayne Davison 2006-12-17 02:05:11 +00:00
  • edb4ba5fdb We now check for these: int16_t, uint16_t, int32_t, uint32_t, and int64_t. Wayne Davison 2006-12-17 01:59:03 +00:00
  • 007996b40d Got rid of the code that sorted based on struct idev objects since we always use a hardlinked group-number now. Wayne Davison 2006-12-17 00:40:39 +00:00
  • dbd9ea3e5a Use F_ROOTDIR() in place of dir.root. Wayne Davison 2006-12-17 00:40:36 +00:00
  • 2ef0340517 Use F_DEPTH() in place of dir.depth. Wayne Davison 2006-12-17 00:40:33 +00:00
  • 9d737ecb7a Got rid of the hlink_pool in favor of using the new hashtable code on the receiving side. This allows us to always use a 32-bit number to identify the hardlink clusters, even on a system where pointers are 64-bits. Also made changes to handle the use of F_ROOTDIR() and F_DEPTH() instead of the old union that wasted space on the receiving side when pointers are 64-bits. Wayne Davison 2006-12-17 00:40:28 +00:00
  • bd6edd3fa2 - Got rid of "struct idev". - Use just the 32-bit numbers in the file_extras union. - Re-ordered the items in the file_struct to avoid padding on systems with 64-bit pointers. - Got rid of the "dir" union in the file_struct, making the two items into "extras": F_DEPTH() for the receiving side, and F_ROOTDIR() for the sending side. - Added PTR_EXTRA_LEN define. - Got rid of F_HL_IDEV() define. Wayne Davison 2006-12-17 00:40:24 +00:00
  • 6eee13cf58 Moved the flist_extra_cnt stuff from options.c to compat.c so that the values will be computed separately for the sender and the receiver. Wayne Davison 2006-12-17 00:40:21 +00:00
  • 9602b5cfbd - Ensure that mkrouding gets rebuilt when rsync.h changes. - Added an easy way to run the tests using protocol 29. Wayne Davison 2006-12-17 00:40:18 +00:00
  • 48ffc11e9c Make the error messages a little clearer. Wayne Davison 2006-12-16 23:14:59 +00:00
  • 5a3e9ff608 Output some info about the size of our structures. Wayne Davison 2006-12-16 21:11:58 +00:00
  • aac5cab80b Changed the static file_struct var to match the changes in rsync.h. Wayne Davison 2006-12-16 19:24:17 +00:00