Commit Graph

  • beb9368481 Make sure that the batch-prefix string isn't overly long (avoiding a potential problem in the batch-filename code). Wayne Davison 2004-01-19 23:33:02 +00:00
  • 981555bddb Actually, let's avoid snprintf() where possible. Wayne Davison 2004-01-19 23:28:57 +00:00
  • 9c7527085c Use snprintf() instead of strlcpy()+strlcat(). Wayne Davison 2004-01-18 21:22:49 +00:00
  • eddd5d129e A few minor string optimizations and a new complaint if we try to send a truncated filename. Wayne Davison 2004-01-17 19:45:26 +00:00
  • 26f76b7912 Got rid of an extra call to io_start_buffering_out(). Wayne Davison 2004-01-17 05:04:04 +00:00
  • 32eda0961e Unified the externs. Wayne Davison 2004-01-17 04:58:24 +00:00
  • 66964002df A fix for --cvs-exclude. Wayne Davison 2004-01-17 01:23:41 +00:00
  • 57469f6c31 Items read from a per-directory .cvsignore file should be added to the local_exclude_list, not the exclude_list. Wayne Davison 2004-01-17 01:16:49 +00:00
  • 13c7bcbb2b Output an error before we die if we get a wacko message from the receiver. Wayne Davison 2004-01-16 16:31:47 +00:00
  • d48c806560 Clarified the --delete-after descriptions. Wayne Davison 2004-01-15 17:45:53 +00:00
  • ad1a09a509 Clarified the --delete-after help text. Wayne Davison 2004-01-15 17:43:34 +00:00
  • d6631cf3a5 If we're a daemon talking with a pre-28 protocol, use FERROR for a vanished-file message (not FINFO). Wayne Davison 2004-01-15 08:56:33 +00:00
  • 5a8543b8b8 In two places: needed to use protocol_version, not PROTOCOL_VERSION. Wayne Davison 2004-01-15 08:39:25 +00:00
  • 19119cbd35 Changed version to "2.6.1cvs". Wayne Davison 2004-01-15 08:16:40 +00:00
  • 442743b83c Improved receiver/generator communications. Wayne Davison 2004-01-15 07:51:37 +00:00
  • 419896af47 - Define FULL_FLUSH and NORMAL_FLUSH. - Got rid of FNONE from logcode enum. - Created msgcode enum with MSG_DATA, MSG_REDO, MSG_DONE, etc. Wayne Davison 2004-01-15 07:42:27 +00:00
  • 0569a1339d - Got rid of the f_gen pipe. - Use new send_msg() call with MSG_DONE or MSG_REDO. Wayne Davison 2004-01-15 07:42:25 +00:00
  • f1e3656ee2 - Call io_flush() with its new FULL_FLUSH/NORMAL_FLUSH arg. - Got rid of the recv_pipe between the receiver and the generator. - Use new send_msg(MSG_DONE,...) call to signal the generator when the receiver is done. - Use the new get_redo_num() call in the generator to read the final -1 from the receiver. Wayne Davison 2004-01-15 07:42:21 +00:00
  • a644fc3cc4 - Moved err_list* stuff to io.c and renamed them to msg_list*. - Call the new send_msg() function to send a remote log message. Wayne Davison 2004-01-15 07:42:19 +00:00
  • d17e1dd2da - Moved the err_list* stuff here from log.c and renamed them msg_list*. - Renamed log_error_fd to msg_fd_out, and io_error_fd to msg_fd_in. - Added a redo_list* to keep track of any redo items that come over the message channel from the receiver to the generator. - The io_flush() and msg_list_push() functions now take an arg: NORMAL_FLUSH or FULL_FLUSH. The latter ensures that we don't lose any log messages that haven't gotten written from the msg_list. - Added a send_msg() function that log.c calls to send any remote log messages. It is also called to send the new MSG_REDO and MSG_DONE messages. Wayne Davison 2004-01-15 07:42:17 +00:00
  • b9b15fb165 We now call get_redo_num() instead of reading f_recv (which was removed). Wayne Davison 2004-01-15 07:42:15 +00:00
  • ef732c3b54 Call io_flush() with its new FULL_FLUSH option. Wayne Davison 2004-01-15 07:42:12 +00:00
  • baa4212ae1 If the do_lchown() fails and we weren't trying to change the user, the error now says that chgrp failed, not chown. Wayne Davison 2004-01-15 07:08:00 +00:00
  • 0be976ec0a Fixed a bug when a non-root user copies a GID=0 file with -g set and no permissions to set group 0. Wayne Davison 2004-01-15 07:06:45 +00:00
  • f7f10340d6 The HAS_INODE_DATA flag is no longer a part of the LIVE_FLAGS define. Wayne Davison 2004-01-15 02:25:38 +00:00
  • 68f9910d94 Explain the --progress output. Wayne Davison 2004-01-13 18:50:40 +00:00
  • fb6e0ea120 Give the user an idea of how far along in the transfer we are when using --progress. Wayne Davison 2004-01-13 18:25:03 +00:00
  • 97feb557ed Set stats.current_file_index. Wayne Davison 2004-01-13 18:22:43 +00:00
  • dc8293ff73 Added current_file_index. Wayne Davison 2004-01-13 18:22:13 +00:00
  • 785db4ced0 Merged a couple more f != -1 if sections. Wayne Davison 2004-01-13 06:27:30 +00:00
  • 5562deb169 Moved a couple externs. Wayne Davison 2004-01-13 05:13:57 +00:00
  • 983b1ed321 Merged some "if (f != -1)" checks, put the clean_flist() call in the right spot, and moved some externs. Wayne Davison 2004-01-13 05:11:56 +00:00
  • 548abf96ce Relocated some externs. Wayne Davison 2004-01-13 04:50:45 +00:00
  • f8ebdf9265 More hard-link stuff. Wayne Davison 2004-01-12 03:59:53 +00:00
  • aa23c22004 Changed the hard-link check. Wayne Davison 2004-01-12 03:50:07 +00:00
  • 1d5cda2265 Updated to perform a much more efficient hlink algorithm that doesn't require any binary searching of hlink data. Wayne Davison 2004-01-12 03:49:47 +00:00
  • fe70ad26d3 Added F_HEAD and F_NEXT defines. Wayne Davison 2004-01-12 03:48:43 +00:00
  • 0a00748901 Mention more of the latest changes. Wayne Davison 2004-01-11 22:39:34 +00:00
  • 03979352b4 More cleanup, fixing an error in the fatal-message strings that tried to output the "filename" value when it might not be initialized. Wayne Davison 2004-01-11 22:11:25 +00:00
  • cb7fb45e42 Updated a questioning comment. Wayne Davison 2004-01-11 08:17:19 +00:00
  • 92cc9dd7c2 Use the new dev+inode union in the flist_struct. Wayne Davison 2004-01-11 07:56:14 +00:00
  • 88a7fb3edd Moved the inode & dev items out of the flist_struct. Based on a preliminary patch by J.W. Wayne Davison 2004-01-11 07:55:53 +00:00
  • 728d092201 Use the new union-ified flist_struct values. Wayne Davison 2004-01-11 07:28:45 +00:00
  • 80707c983c Put 3 flist_struct items into a union: rdev, sum, and link (all mutually exclusive based on mode). Based on an idea by J.W. Wayne Davison 2004-01-11 07:28:23 +00:00
  • 5911fee567 A slightly better reset mechanism for send_file_entry() and receive_file_entry(). Wayne Davison 2004-01-10 22:13:19 +00:00
  • a09f6f55da Use the new LIVE_FLAGS define to fix a potential flag problem. Wayne Davison 2004-01-10 21:10:04 +00:00
  • caf5cc9152 Added LIVE_FLAGS define. Wayne Davison 2004-01-10 21:09:06 +00:00
  • 58422e8393 Changed the call to write_batch_csum_info() to the latest syntax. Wayne Davison 2004-01-10 20:16:18 +00:00
  • e8d3168e3a Massive rewrite to replace the file-list read/write code with calls to send_file_entry() and receive_file_entry(). Other cleanups too. Wayne Davison 2004-01-10 20:16:13 +00:00
  • 7b1a0c19b8 Allow the send_file_entry() and receive_file_entry() routines to be called by the batch processor. Wayne Davison 2004-01-10 20:15:55 +00:00
  • 536492752b Support the recent changes in the flist_struct. Wayne Davison 2004-01-10 08:39:57 +00:00
  • 7c4f063b13 Got rid of tmpsum[]. Wayne Davison 2004-01-09 18:35:41 +00:00
  • 1a62c49d31 Note latest changes. Wayne Davison 2004-01-09 18:27:15 +00:00
  • fea4db62bd - Never allocate a useless sum array for a non-regular flist item. - Don't transmit the sum array for non-regular files (p28 onward). - Tweaked a couple comments. Wayne Davison 2004-01-09 18:19:32 +00:00
  • 4499c0eebd A couple minor code improvements. Wayne Davison 2004-01-09 18:10:31 +00:00
  • 0c42946536 Added an extra comment. Wayne Davison 2004-01-09 16:53:55 +00:00
  • ab264c9e79 Added a few more devices to the devices.test to hopefully test same, same high and different device numbers. J.W. Schultz 2004-01-09 14:02:00 +00:00
  • dd7fb70f6e Finished the last_* renameing and fixed a cast.. J.W. Schultz 2004-01-09 13:55:56 +00:00
  • 30f337c9ef Updated the send_file_name() and receive_file_entry() functions to make some of the variable names more logical in the new program flow. Also improved the setting of the new last_rdev value that only remembers the high 3 bytes. Wayne Davison 2004-01-08 22:45:12 +00:00
  • 9d35271938 Changed the OLD_SAME_RDEV define to SAME_RDEV_pre28. Wayne Davison 2004-01-08 22:45:07 +00:00
  • bbfb1d016b Added explicit call to AC_PROG_EGREP. Wayne Davison 2004-01-08 18:33:38 +00:00
  • c4b4df4fb4 Optimized the sending of dev+inode data for hard-linking support (but only when speaking protocol 28). Wayne Davison 2004-01-08 11:29:50 +00:00
  • a6d89d18bf - Added flags HAS_INODE_DATA and SAME_DEV. - Changed PROTOCOL_VERSION to 28 now. Wayne Davison 2004-01-08 11:28:07 +00:00
  • 75bc860093 Implemented an extended-flag-byte in the transfer protocol by moving the SAME_RDEV bit into the next 8 bits and adding an EXTENDED_FLAG bit. Also modified the meaning of this bit for protocol 28 and above: SAME_HIGH_RDEV indicates that all but the lowest byte matches. The older protocols get OLD_SAME_RDEV set (with the old semantics) for compatibility. Note also that protocol 28 isn't turned on yet. Wayne Davison 2004-01-08 11:08:30 +00:00
  • 02a279a75f Added EXTENDED_FLAGS and SAME_HIGH_RDEV. Changed SAME_RDEV to OLD_SAME_RDEV. Wayne Davison 2004-01-08 11:08:30 +00:00
  • 584c7bf76d Pass the $srcdir/wildtest.txt file on the command-line to wildtest. Wayne Davison 2004-01-08 09:00:14 +00:00
  • c4cd2ca6bf We now take a TESTFILE arg on the command-line. Wayne Davison 2004-01-08 08:59:52 +00:00
  • 1ef00d2072 Improved the code in send_file_entry() and receive_file_entry() to make it a little easier to read and a little more optimized. Also made the flag size in our function calls match the size of the flags in the flist_struct. These changes will make it easier for me to optimize the sending of the hard-link data in a future commit. Wayne Davison 2004-01-08 04:56:27 +00:00
  • 4dd4c72790 Made the flags in the file_struct a little smaller. Wayne Davison 2004-01-08 04:53:16 +00:00
  • 6aae748ea7 - No need to check S_ISREG() on files already in the hlink_list. - The realloc in init_hard_links() might fail if the list is empty (which can happen if there are no regular files in the transfer). I changed the code to free the list in that case. Wayne Davison 2004-01-08 03:17:07 +00:00
  • aa953c3201 Old-protocols. Wayne Davison 2004-01-08 00:47:17 +00:00
  • 3f55bd5dad Got rid of support for protocols 17 and 18. Wayne Davison 2004-01-08 00:45:41 +00:00
  • 279b1c1ebb Noted hardlink memory footprint reduction. J.W. Schultz 2004-01-07 11:38:23 +00:00
  • fa45cda1aa Cosmetic changes to file_compare() for readability and to match hlink_compare() J.W. Schultz 2004-01-07 09:11:56 +00:00
  • 11dc274054 Change hlink_list so we only have a list of pointers to file_struct instead of a copy of the file_struct list. J.W. Schultz 2004-01-07 09:06:37 +00:00
  • e7bef92205 Batch-mode fix. Wayne Davison 2004-01-06 05:35:55 +00:00
  • 4a1991d7c5 Fixed a byte-order problem for batch-file processing on big-endian systems (reported by Jay Fenlason). Wayne Davison 2004-01-06 05:33:02 +00:00
  • 13aefa1365 Some whitespace tweaks. Wayne Davison 2004-01-05 03:57:15 +00:00
  • addf0c4a1c A few formatting tweaks. Wayne Davison 2004-01-05 03:56:19 +00:00
  • 25bfc8cea1 Use new recv_generator() calling syntax. Wayne Davison 2004-01-04 19:18:37 +00:00
  • dfd5ba6ab7 Changed recv_generator() to take a "struct file_struct *" instead of a "struct file_list *", which allows us to call it with a copy of the current file_struct entry that we've modified. This is better than modifying the entry directly because the latter causes the shared memory between the generator and the receiver to slowly vanish as the in-memory changes happen. Wayne Davison 2004-01-04 18:43:18 +00:00
  • 393ba2214d Try using "id -un" before "whoami" since the latter doesn't exist on SunOS systems (and I hope the former works -- we'll see). Wayne Davison 2004-01-04 07:07:08 +00:00
  • f358487f8e Silence a compiler warning on Sun OS systems. Wayne Davison 2004-01-04 07:06:05 +00:00
  • a18381aca6 Improved the text. Wayne Davison 2004-01-03 20:50:51 +00:00
  • f6e54812b7 Fixed autom4te*.cache entry. Wayne Davison 2004-01-03 19:49:52 +00:00
  • 31e7451aa5 Mention more INTERNALS work. Wayne Davison 2004-01-03 19:28:17 +00:00
  • 0e36d9da42 More variable-size cleanup. Wayne Davison 2004-01-03 19:28:03 +00:00
  • da9d12f5d9 Made the types used in the sum_buf and sum_struct structures consistent with the variables in the code that manipulates these values. Wayne Davison 2004-01-03 18:37:41 +00:00
  • a60e2dca6b Create GID_NONE for use gid test readability. J.W. Schultz 2004-01-03 13:17:32 +00:00
  • 86c4601e12 Fixed a name. Wayne Davison 2004-01-03 09:48:52 +00:00
  • 173f5bf8cf Fixed a size check in the new code. Wayne Davison 2004-01-03 09:44:20 +00:00
  • 823edc686f Document the latest changes. Wayne Davison 2004-01-03 09:36:30 +00:00
  • a3a841073e Added support for "Basic" authentication to our proxy, based on a patch by Bardur Arantsson. Wayne Davison 2004-01-03 09:19:06 +00:00
  • 57385128c3 Made base64_encode() non-static. Wayne Davison 2004-01-03 08:53:36 +00:00
  • 2990e06f29 Silence a compiler warning. Wayne Davison 2004-01-03 01:12:10 +00:00
  • 2ef2e822d1 Added missing '[]'s to AC_CHECK_FUNCS() calls so that this works with autoconf 2.58 and above. Wayne Davison 2004-01-03 00:40:55 +00:00
  • b7736c797c Some cosmetic tweaks. Wayne Davison 2004-01-02 23:41:32 +00:00
  • 9b9c8aaf4d Improved flush_write_file(). Wayne Davison 2004-01-02 18:42:33 +00:00
  • b0fd253afc Applied a slightly-tweaked version of Oliver Braun's patch that implements listening on multiple addresses and a fix for IPv6-only systems. Wayne Davison 2004-01-02 18:05:51 +00:00
  • e028b9ff53 Call bind() with the right ai_addr/ai_addrlen info. Wayne Davison 2004-01-02 17:47:44 +00:00