Commit Graph

  • 33cbd577ad If a module's path is not absolute, make it absolute. Wayne Davison 2007-07-02 22:02:14 +00:00
  • 524eaa8245 We omit copying any user-space rsync.%FOO attributes unless the user specified -X twice. Wayne Davison 2007-07-02 21:35:14 +00:00
  • 9742b386b3 Make option variables a little clearer by using separate FOO_ndx values to index into the file-list extra-attribute array instead of abusing the preserve_FOO variables. Wayne Davison 2007-07-02 21:29:49 +00:00
  • 8b498b9f1a Decided against the last change. Wayne Davison 2007-06-06 15:43:34 +00:00
  • c04af69701 Allow a NULL address to be passed to pool_free_old() to indicate that it should free all old mem and reset to an empty state. Wayne Davison 2007-06-06 15:38:31 +00:00
  • f87fb190b3 Check for the setacl command for Tru64 (which doesn't have setfacl). Wayne Davison 2007-06-02 16:44:23 +00:00
  • a21e72c3e6 Attempting to make the mask test compatible with Solaris 8. Wayne Davison 2007-06-02 16:30:04 +00:00
  • 1c4ffe64db Mention the pool_alloc changes. Wayne Davison 2007-05-29 04:23:50 +00:00
  • abdcb21a7a Unified the file-list pool used in incremental recursion mode so that we use less memory, especially in small transfers. As file lists are discarded, we use the new pool_boundary() and pool_free_old() functions to discard pool extents that are no longer needed. Wayne Davison 2007-05-29 04:19:47 +00:00
  • f5ba7bfbb6 - Changed FILE_EXTENT to NORMAL_EXTENT and HLINK_EXTENT to SMALL_EXTENT. - Added a pool_boundary variable to struct file_list. Wayne Davison 2007-05-29 04:19:44 +00:00
  • 676e604135 Added pool_free_old() and pool_boundary() functions to add a way to free all wholly affected extents older than a particular point in time. Wayne Davison 2007-05-29 04:19:41 +00:00
  • 3fac8ca8d1 Tweaked a variable and a label to make them less confusing. Wayne Davison 2007-05-29 02:47:23 +00:00
  • 33766a8daa Improvements to increase clarity, fix misstatements, add missing punctuation, and fix some typos. Wayne Davison 2007-05-29 02:46:44 +00:00
  • e3d27df444 - Fixed a bug where a pool_free() on the most-recently allocated pool item was trying to make that memory available to the pool, but it failed to adjust the right variable. - Fixed a bug in pool_free() where the return of the entire live extent back to unallocated status did not obey POOL_CLEAR. - Use the new() and new_array() functions instead of malloc(). - Changed the sqew variable to skew. - Some other minor formatting tweaks. Wayne Davison 2007-05-29 00:52:08 +00:00
  • 6aa27a7ce5 - Do less seeking when writing a sparse file. - Don't rewrite the last byte of a file in sparse mode when the file didn't end with a null char. Wayne Davison 2007-05-26 21:46:22 +00:00
  • 47cffb77de Handle EINTR in a couple places where we handle the --file-from I/O. Wayne Davison 2007-05-26 21:44:19 +00:00
  • 565a340b0a Changed verbosity back from -vvvv to -vv. Wayne Davison 2007-05-25 14:32:08 +00:00
  • f45b64d8dd Improved the sort comment. Wayne Davison 2007-05-25 14:29:35 +00:00
  • 56ce72c447 Improved a comment. Wayne Davison 2007-05-25 14:23:05 +00:00
  • 898fab2577 Got rid of superfluous acl_clear_perms() call that Antti Tapaninen pointed out. Wayne Davison 2007-05-25 14:16:57 +00:00
  • 0e5dd89866 Mention latest improvements. Wayne Davison 2007-05-24 23:11:33 +00:00
  • 79028af116 Changed dup-detection code to keep the first item in the user's args. This is more in keeping with the way cp works, and also makes the dir- joining code (in inc_recurse mode) easier. Wayne Davison 2007-05-24 23:08:39 +00:00
  • a572e12675 - Added fsort() and fsort_tmp() that implement a mergesort routine that ensures that any identical items in the file-list stay in the same order as they had in the input. It will also obey the --qsort option (which causes it to punt the sort to the qsort() routine). - Changed the various places that sort the file-list to call fsort(). Wayne Davison 2007-05-24 02:50:41 +00:00
  • c8e8394615 If someone forces the use of qsort() via --qsort, disable incremental recursion (at least for now). Wayne Davison 2007-05-24 02:50:38 +00:00
  • 8487f9cf29 - Added the --qsort option. - Added several new --no-FOO options. Wayne Davison 2007-05-24 02:50:35 +00:00
  • d750be6ad8 Make sure we don't try to output a NULL pointer in a verbose message. Wayne Davison 2007-05-23 00:48:27 +00:00
  • 0bb8616535 - Output a -vvv(erbose) message in the touch_up_dirs() loop. - Made the keep-alive counter in touch_up_dirs() work better. - Use !(N & 0xFF) instead of !(N % 200). Wayne Davison 2007-05-23 00:42:38 +00:00
  • 1faa1a6da9 Output a -vvv(erbose) message when receiving an incremental file list. Wayne Davison 2007-05-23 00:42:32 +00:00
  • b5ae4e25c2 Added a comment to the do_chmod() to mark it as a discouraged function. Wayne Davison 2007-05-22 05:59:02 +00:00
  • 3d0a159d96 Added a comment to a shared iterator to avoid a warning from IBM's checker. Wayne Davison 2007-05-22 05:58:59 +00:00
  • 8ea07c0030 - Changed the dir_flist code on the sending side to derive its sorted data from the sorted parent flist. This ensures that any entries marked with FLAG_DUPLICATE are in the same order in the dir_flist (where the flags get checked) as they are in the parent flist (where the flags get set). - Made the flist_expand() function static. - Added a growth count arg to flist_expand(). - Made make_file() set a pool variable instead of tweaking flist. - Improved the error message when a dir-number is out of bounds. Wayne Davison 2007-05-22 05:50:47 +00:00
  • 59fd2a5e7d Improved the error message when a dir-number is out of bounds. Wayne Davison 2007-05-22 05:50:41 +00:00
  • ae87c43452 One more output_flist() call that should verify if my analysis of the Solaris 10 host's merge-test failure is correct or not. Wayne Davison 2007-05-22 03:58:18 +00:00
  • f1599b9ef2 Be more verbose so that we can debug what is going wrong on solaris. Wayne Davison 2007-05-22 00:00:51 +00:00
  • ee83e1bd4d Improved the index values that output_flist() outputs when we're being extra verbose: they now have the list's ndx_start value added in. Wayne Davison 2007-05-22 00:00:07 +00:00
  • 7455467c17 One more try at silencing some checker warnings. Wayne Davison 2007-05-21 23:45:26 +00:00
  • 19395697b9 Let's see if we can silence some more code-checker warnings. Wayne Davison 2007-05-21 18:39:05 +00:00
  • 7787579ad4 Added some "FALL THROUGH" comments in the main switch. Wayne Davison 2007-05-21 10:20:18 +00:00
  • 58a37ed34a Get rid of compiler warning about iconv()'s second parameter. Wayne Davison 2007-05-21 03:56:06 +00:00
  • fe8d61e5d5 Fixed a thinko in the calling of recv_add_gid(). Wayne Davison 2007-05-21 03:20:39 +00:00
  • 87b0cc726b Got rid of the temporary "set -x" that was added for debugging. Wayne Davison 2007-05-21 03:09:25 +00:00
  • 4504b2259f The match_gid() function needed to affect the *flags_ptr value when re-using the last-found match. Wayne Davison 2007-05-21 03:08:55 +00:00
  • cf1b4969b9 The recv_file_entry() function needed to remember the gid flags so that it can reuse them when the gid stays the same. Wayne Davison 2007-05-21 03:08:01 +00:00
  • 434e77193c Set -x option to diagnose what is going wrong on FreeBSD. Wayne Davison 2007-05-21 02:31:20 +00:00
  • 858d45f160 Cast some F_OWNER()/F_GROUP() values to make sure that we don't get a signed/unsigned compiler warning on some systems. Wayne Davison 2007-05-21 02:17:48 +00:00
  • 63186ec077 Fixed a problem in a couple OS's sys_acl_get_access_bits() functions. Wayne Davison 2007-05-21 02:09:45 +00:00
  • dfcb386569 Make sure that the scratch dirs have rwx permissions before we try a recursive rm. Wayne Davison 2007-05-21 02:06:51 +00:00
  • d15f2ff0cf Tweaked a sentence in the --size-only section. Wayne Davison 2007-05-21 01:06:16 +00:00
  • c395acd804 Create a symlink back to the source dir in the scratchdir of a test. Wayne Davison 2007-05-21 01:05:36 +00:00
  • 030820d5dc - Unified the formerly separate user & group name-lists into a single name-list. On POSIX systems, this list will be sorted with the user names first, so the code will work essentially the same way it did before for the currently supported OSes. However, the code will now more easily support non-POSIX ACL setups such as (hopefully) the one used in OS X. - Increased the (potentially) available access-bit storage for name elements from 3 to 31 bits. For non-name elements, the access bits now have the potential to store 7 bits instead of 3. (All the current POSIX implementations still error-check their values at 3 bits, but this will allow adding non-POSIX ACL setups more easily.) - The protocol that transmits the ACL information was changed to send names in a single list, and to use {read,write}_varint() functions instead of {read,write}_byte(). This supports sending access-bit values up to 32-bits (minus any bits reserved for xmit flags). - The construction of the internal access-bit value was moved into the lib/sysacls.c code, so that it could be handled in an appropriate manner for each OS. Wayne Davison 2007-05-21 01:04:40 +00:00
  • 043ef55b22 - Define what the valid access bits are for a name element and a non-name element. - Set a define when the OS needs the name-list sorted. - Got rid of the permset-related defines. - Got rid of some function prototypes that rsync doesn't need. - Got rid of the defines for the do-nothing ACL code. Wayne Davison 2007-05-21 01:04:37 +00:00
  • a30dcbc0a8 - Added a function to get/set all the access-bit values with a single call. This allows the per-OS compatibility code to construct the value with however many bits are supported by each OS. - Removed several functions that rsync doesn't (and won't) need. - Got rid of the do-nothing ACL code (the ACL code in rsync should be disabled on a system that we can't support). Wayne Davison 2007-05-21 01:04:34 +00:00
  • 02f0227e87 Changed SUBPROTOCOL_VERSION from 2 to 3 because of the ACL protocol changes. Wayne Davison 2007-05-21 01:04:31 +00:00
  • 142a5e7b8b Moved GID_NONE define from rsync.h to uidlist.c. Wayne Davison 2007-05-20 07:40:07 +00:00
  • fdfc67406c - Added more users and some groups to one of the files we're copying. Wayne Davison 2007-05-20 07:10:48 +00:00
  • fb7b9ddcb1 - Use F_OWNER() and F_GROUP() instead of F_UID() and F_GID(). Wayne Davison 2007-05-20 07:10:45 +00:00
  • 4ade505c7e - Use F_OWNER() and F_GROUP() instead of F_UID() and F_GID(). - Use the new FLAG_SKIP_GROUP define. Wayne Davison 2007-05-20 07:10:41 +00:00
  • 1564cd5a87 - Use F_OWNER() and F_GROUP() instead of F_UID() and F_GID(). - Made recv_file_entry() name the xmit-flags variable "xflags" to prevent confusion with the internal flags value we're creating. - Added an arg to the calls of recv_group_name() and match_gid(). - Use the improved function names: send_id_list() and recv_id_list(). - Improved the display of the GID values in output_flist(). Wayne Davison 2007-05-20 07:10:37 +00:00
  • 33233b4900 - Fixed a bug in the match_racl_ids() function's iteration. - Fixed a bug with preserving a group ID in an ACL when running as a non-super user that the user is not a member of. Wayne Davison 2007-05-20 07:10:34 +00:00
  • d6b422a61c - Changed id & id2 from int to id_t in the struct iflist. - Added a uint16 flags var to struct iflist. - We now mark a group with FLAG_SKIP_GROUP if the receiving user can't set a group rather than turning it into GID_NONE. This allows us to keep the real group ID mapping, which is needed by the ACL code. Wayne Davison 2007-05-20 07:10:31 +00:00
  • ff2001b91b - Added FLAG_SKIP_GROUP define. - Removed F_UID() and F_GID() defines. Wayne Davison 2007-05-20 07:10:28 +00:00
  • d858b27400 A couple more minor tweaks. Wayne Davison 2007-05-08 17:04:05 +00:00
  • 1874f7e2e1 Improved the documentation on the "quick check" algorithm and the --size-only option. Wayne Davison 2007-05-08 17:01:24 +00:00
  • 377d22ab9f If the server is exiting with an error, delay our exit just a little in order to give the client side a better chance of reading any error message we just sent. Wayne Davison 2007-05-06 19:44:26 +00:00
  • 4f3797c7e2 Clumped some option-sending together that only happens on the sending side. Wayne Davison 2007-05-05 18:34:37 +00:00
  • 6b5a8f80fc Try a better way to deduce if the xattr functions we need are there. Wayne Davison 2007-04-30 02:58:14 +00:00
  • bf10faa9dc Added a "sleep 1" to make certain failures more reproducible. Wayne Davison 2007-04-29 15:01:57 +00:00
  • 548ca46fec Use the --super option for the non-fake test, just in case a system can chown without appearing to be root (uid 0). Wayne Davison 2007-04-28 23:47:16 +00:00
  • e8c64ffdc7 If the lgetxattr() function isn't found, disable xattr support. Wayne Davison 2007-04-28 18:40:23 +00:00
  • 0eb05245f1 Authorize 10.0.1.2 for one of the BSD test-farm systems. Wayne Davison 2007-04-28 17:22:53 +00:00
  • 0156c7842d Improved the --iconv description. Wayne Davison 2007-04-27 14:09:22 +00:00
  • 1acb8f5119 Added the $(CHECK_SYMLINKS) var to installcheck target. Wayne Davison 2007-04-27 13:52:07 +00:00
  • 76e754a0fd Fixed the buildability of the file without ICONV_OPTION enabled. Wayne Davison 2007-04-27 00:19:21 +00:00
  • e7f905accb Fixed the comment about --iconv. Wayne Davison 2007-04-27 00:19:02 +00:00
  • a9a8bc962c Got rid of the --no-ir kluge in this test. Wayne Davison 2007-04-26 23:15:51 +00:00
  • a6e7b97868 - Fixed the merging of duplicated directory hierarchies in incremental recursion mode. - Fixed some problems with --iconv in incremental recursion mode. Wayne Davison 2007-04-26 23:15:47 +00:00
  • 1befb74b13 Refer to the right sorted/unsorted file list array in touch_up_dirs(). Wayne Davison 2007-04-26 23:15:43 +00:00
  • 8f3335a18c The server now needs the F_NDX() data for --iconv with incremental recursion. Wayne Davison 2007-04-26 23:15:39 +00:00
  • 505c0579f7 Added FLAG_DUPLICATE for the sender to mark a duplicate flist entry (which is better on the sending side than clearing the duplicate's data). Wayne Davison 2007-04-26 23:15:36 +00:00
  • a430691df1 Prevent a hang in incremental-recursion mode when the receiver encounters an error updating the file: the receiver now sends MSG_NO_SEND to the generator so that it knows when all outstanding work is completed. Wayne Davison 2007-04-26 23:06:38 +00:00
  • 332cf6df7c The --iconv option has now made it to the trunk. Wayne Davison 2007-04-26 05:53:13 +00:00
  • 3f7afe7ec1 Changed a "mkdir -p" into a makedir. Wayne Davison 2007-04-26 05:32:38 +00:00
  • 8fc4033ef0 Changed F_ROOTDIR() to F_PATHNAME(). Wayne Davison 2007-04-26 00:23:52 +00:00
  • ef35abb2b7 - Renamed flist_dir to pathname to avoid confusion with dir_flist var. - Renamed push_flist_dir() to push_pathname(). - Set a pool var in recv_file_ent() instead of playing games with flist. - Simplified the top_flags computation in send_file_list(). Wayne Davison 2007-04-26 00:23:48 +00:00
  • 0b68d6b6f4 Create symlinks for fake tests. Wayne Davison 2007-04-24 19:33:12 +00:00
  • f1271537a4 Put the files down in a subdir so that we test backup's dir- creating functionality (which had a bug until recently). Wayne Davison 2007-04-24 19:03:54 +00:00
  • b13505da1d Need to call unmake_file() instead of free() on a file_struct. Wayne Davison 2007-04-24 18:43:31 +00:00
  • 7ea6ea98c8 Use a single makepath call with multiple args. Wayne Davison 2007-04-24 18:21:08 +00:00
  • d1798a2fda Allow makepath to take multiple args. Wayne Davison 2007-04-24 18:19:25 +00:00
  • e911ff75d6 Specify an arg sequence that was recently failing to work. Wayne Davison 2007-04-24 18:18:57 +00:00
  • 49f7162e7d Use a slightly different rsync calling syntax. Wayne Davison 2007-04-24 18:18:29 +00:00
  • 3bb88b4388 Fixed a directory push problem with the user specified an arg with a subdir followed by an arg with no subdirs. Wayne Davison 2007-04-24 17:53:54 +00:00
  • b3fbe3ce35 The chown script now has a --fake-super mode if the script name has "fake" in it. Added a symlink named chown-fake.test. Wayne Davison 2007-04-24 17:22:01 +00:00
  • 9557eabaa7 Made the devices.test script do a real device test when called normally, or a fake-device test when called with "fake" in the script name. Added a devices-fake.test symlink. Wayne Davison 2007-04-24 17:06:09 +00:00
  • acac1f5c6f Conditionalize xattr code for systems without xattr support. Wayne Davison 2007-04-24 16:54:38 +00:00
  • 3427355422 A little more popt tweaking. Wayne Davison 2007-04-24 16:11:02 +00:00
  • cbf626fd62 Fixed build problem for tls for those using the included popt. Wayne Davison 2007-04-24 16:06:29 +00:00
  • 1c702303eb Moved the header info from smb_acls.h into lib/sysacls.h. Wayne Davison 2007-04-24 08:11:02 +00:00
  • 9a234269ed Improved the usage message. Wayne Davison 2007-04-24 08:00:49 +00:00
  • db9c9e2766 Added arg-parsing to tls.c. Wayne Davison 2007-04-24 07:52:45 +00:00