Wayne Davison
4635fb9995
Avoid the prune-empty-dir code when cleaning a file list created
...
by get_dirlist().
2007-07-07 20:43:14 +00:00
Wayne Davison
9decb4d2ef
Changed "count" to "used" in struct file_list since there can
...
be empty items that make the count inaccurate (and the name
somewhat deceiving).
2007-07-07 20:22:05 +00:00
Wayne Davison
b3b326016a
The length check in make_file() doesn't need to subtract pathname_len
...
anymore, as the sender code never concatenates the F_PATHNAME() value
with the dirname+basename string these days.
2007-07-07 16:01:59 +00:00
Wayne Davison
4bde45f60e
Make the comment even better.
2007-07-07 15:37:56 +00:00
Wayne Davison
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +00:00
Wayne Davison
f92f5b166e
Tweaked a comment to remove a (really old) rsync version reference.
2007-07-07 05:25:50 +00:00
Wayne Davison
9b25ef35bd
Switch the checking of preserve_[ug]id var to checking [ug]id_ndx var
...
when the code is about to use the [ug]id_ndx value as an index (since
this saves a memory reference).
2007-07-02 22:11:23 +00:00
Wayne Davison
7c73536c25
Use module_dir instead of lp_path().
2007-07-02 22:06:48 +00:00
Wayne Davison
33cbd577ad
If a module's path is not absolute, make it absolute.
2007-07-02 22:02:14 +00:00
Wayne Davison
524eaa8245
We omit copying any user-space rsync.%FOO attributes unless the
...
user specified -X twice.
2007-07-02 21:35:14 +00:00
Wayne Davison
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.
2007-07-02 21:29:49 +00:00
Wayne Davison
8b498b9f1a
Decided against the last change.
2007-06-06 15:43:34 +00:00
Wayne Davison
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.
2007-06-06 15:38:31 +00:00
Wayne Davison
f87fb190b3
Check for the setacl command for Tru64 (which doesn't have setfacl).
2007-06-02 16:44:23 +00:00
Wayne Davison
a21e72c3e6
Attempting to make the mask test compatible with Solaris 8.
2007-06-02 16:30:04 +00:00
Wayne Davison
1c4ffe64db
Mention the pool_alloc changes.
2007-05-29 04:23:50 +00:00
Wayne Davison
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.
2007-05-29 04:19:47 +00:00
Wayne Davison
f5ba7bfbb6
- Changed FILE_EXTENT to NORMAL_EXTENT and HLINK_EXTENT to SMALL_EXTENT.
...
- Added a pool_boundary variable to struct file_list.
2007-05-29 04:19:44 +00:00
Wayne Davison
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.
2007-05-29 04:19:41 +00:00
Wayne Davison
3fac8ca8d1
Tweaked a variable and a label to make them less confusing.
2007-05-29 02:47:23 +00:00
Wayne Davison
33766a8daa
Improvements to increase clarity, fix misstatements, add missing
...
punctuation, and fix some typos.
2007-05-29 02:46:44 +00:00
Wayne Davison
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.
2007-05-29 00:52:08 +00:00
Wayne Davison
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.
2007-05-26 21:46:22 +00:00
Wayne Davison
47cffb77de
Handle EINTR in a couple places where we handle the --file-from I/O.
2007-05-26 21:44:19 +00:00
Wayne Davison
565a340b0a
Changed verbosity back from -vvvv to -vv.
2007-05-25 14:32:08 +00:00
Wayne Davison
f45b64d8dd
Improved the sort comment.
2007-05-25 14:29:35 +00:00
Wayne Davison
56ce72c447
Improved a comment.
2007-05-25 14:23:05 +00:00
Wayne Davison
898fab2577
Got rid of superfluous acl_clear_perms() call that Antti Tapaninen
...
pointed out.
2007-05-25 14:16:57 +00:00
Wayne Davison
0e5dd89866
Mention latest improvements.
2007-05-24 23:11:33 +00:00
Wayne Davison
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.
2007-05-24 23:08:39 +00:00
Wayne Davison
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().
2007-05-24 02:50:41 +00:00
Wayne Davison
c8e8394615
If someone forces the use of qsort() via --qsort, disable incremental
...
recursion (at least for now).
2007-05-24 02:50:38 +00:00
Wayne Davison
8487f9cf29
- Added the --qsort option.
...
- Added several new --no-FOO options.
2007-05-24 02:50:35 +00:00
Wayne Davison
d750be6ad8
Make sure we don't try to output a NULL pointer in a verbose message.
2007-05-23 00:48:27 +00:00
Wayne Davison
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).
2007-05-23 00:42:38 +00:00
Wayne Davison
1faa1a6da9
Output a -vvv(erbose) message when receiving an incremental file list.
2007-05-23 00:42:32 +00:00
Wayne Davison
b5ae4e25c2
Added a comment to the do_chmod() to mark it as a discouraged function.
2007-05-22 05:59:02 +00:00
Wayne Davison
3d0a159d96
Added a comment to a shared iterator to avoid a warning from IBM's checker.
2007-05-22 05:58:59 +00:00
Wayne Davison
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.
2007-05-22 05:50:47 +00:00
Wayne Davison
59fd2a5e7d
Improved the error message when a dir-number is out of bounds.
2007-05-22 05:50:41 +00:00
Wayne Davison
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.
2007-05-22 03:58:18 +00:00
Wayne Davison
f1599b9ef2
Be more verbose so that we can debug what is going wrong on solaris.
2007-05-22 00:00:51 +00:00
Wayne Davison
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.
2007-05-22 00:00:07 +00:00
Wayne Davison
7455467c17
One more try at silencing some checker warnings.
2007-05-21 23:45:26 +00:00
Wayne Davison
19395697b9
Let's see if we can silence some more code-checker warnings.
2007-05-21 18:39:05 +00:00
Wayne Davison
7787579ad4
Added some "FALL THROUGH" comments in the main switch.
2007-05-21 10:20:18 +00:00
Wayne Davison
58a37ed34a
Get rid of compiler warning about iconv()'s second parameter.
2007-05-21 03:56:06 +00:00
Wayne Davison
fe8d61e5d5
Fixed a thinko in the calling of recv_add_gid().
2007-05-21 03:20:39 +00:00
Wayne Davison
87b0cc726b
Got rid of the temporary "set -x" that was added for debugging.
2007-05-21 03:09:25 +00:00
Wayne Davison
4504b2259f
The match_gid() function needed to affect the *flags_ptr value
...
when re-using the last-found match.
2007-05-21 03:08:55 +00:00