Wayne Davison
15164c0aa9
Paul's patch to improve the "not creating new ..." message
...
for directories.
2005-04-10 19:44:16 +00:00
Wayne Davison
beb51aa09e
Use the new do_xfers variable in place of some dry_run checks
...
(with appropriate negation).
2005-04-09 18:59:52 +00:00
Wayne Davison
c2523a0541
Don't call maybe_flush_socket() quite so often.
2005-04-07 08:32:32 +00:00
Wayne Davison
cd908ef4ff
Fix a bug with --delete-after combined with --backup.
2005-04-07 08:13:44 +00:00
Wayne Davison
417099fa20
Periodically call maybe_flush_socket().
2005-04-05 20:08:51 +00:00
Wayne Davison
a06e2b7cab
When doing a delete pass with do_progress output, get rid of the
...
temporary output (it used to always be covered up by output in
older versions, but it might be followed by a newline in newer
versions).
2005-04-05 19:51:13 +00:00
Wayne Davison
552a218468
Make a local-copy caused by a not-quite-up-to-date --compare-dest
...
or --link-dest file be output as a 'c' (local change) when itemizing
or as transfered file when not itemizing.
2005-04-01 18:12:22 +00:00
Wayne Davison
41b84ce012
Don't try to tweak read-only dest-dir permissions in list-only mode.
2005-03-31 23:30:03 +00:00
Wayne Davison
9c63d83d3d
Got rid of a useless extern.
2005-03-30 16:33:41 +00:00
Wayne Davison
083acd496d
Turn off do_progress during the file-update phase so that
...
--delete-during and --fuzzy don't get any superfluous
" N files..." lines output in the middle of the processing.
2005-03-29 10:41:26 +00:00
Wayne Davison
70352269ba
If --delay-updates wasn't specified, write out two -1 indexes at
...
the same time to avoid a useless round-trip delay for an empty
delay-updates phase.
2005-03-29 01:04:20 +00:00
Wayne Davison
94af17a6eb
Got rid of temporary code that set the ITEM_DUMMY_BIT.
2005-03-27 05:58:36 +00:00
Wayne Davison
f328e0f3a8
Set a maximum distance-measure that find_fuzzy() will accept.
2005-03-17 08:59:48 +00:00
Wayne Davison
0438f100ae
We need to run our post-processing activities after the end of
...
the receiver's delay-update processing.
2005-03-17 00:41:18 +00:00
Wayne Davison
62f9573fb3
- Added an extra phase to the end of the transfer to better handle
...
delayed updates that have hard links.
- Send the new ITEM_DUMMY_BIT to the sender so that we can figure
out if the other side is pre1 or pre2 and let the receiver reject
it.
2005-03-15 19:19:38 +00:00
Wayne Davison
7e9059d60f
Fixed a just-introduced crash bug in the --fuzzy processing.
2005-03-14 22:22:42 +00:00
Wayne Davison
ccc51c8331
The --fuzzy code now handles a file->dirname that has an identical
...
string as another file without being an identical pointer.
2005-03-14 03:35:40 +00:00
Wayne Davison
717b04306a
Tweaked the name of a variable.
2005-03-12 23:52:08 +00:00
Wayne Davison
967866d4df
Added --copy-dest logic, and improved the updating of --compare-dest
...
and --link-dest files that are up-to-date but have differing attributes.
2005-03-11 17:36:03 +00:00
Wayne Davison
1f1d368ad5
- Improved the error-checking for some delete_item() calls.
...
- Move the non-regular-file delete-check above the alt-basis check
where it belongs.
- Keep track of the real statret and real stat-struct for certain
alt-basis scenarios (e.g. partial-dir and fuzzy) so that we send
the right itemized change flags.
2005-03-09 23:46:28 +00:00
Wayne Davison
ef20efcbb6
Made itemize() output the fnamecmp_type and the fuzzy name based on
...
the new ITEM_BASIS_TYPE_FOLLOWS and ITEM_XNAME_FOLLOWS flags. Got
rid of the name-pipe to the receiver.
2005-03-09 18:54:12 +00:00
Wayne Davison
1f7e29b99c
Fixed the change-report output for a directory that has no
...
write permissions.
2005-03-09 03:49:07 +00:00
Wayne Davison
c2b11ba017
Backed out the hack that reversed ITEM_REPORT_XATTRS with
...
ITEM_TRANSFER. Yes, it allowed some kludge code that made backward
compatibility seamless, but it made it impossible to remove the hack
in the future. This way, the backward compatibility is just
slightly inaccurate in the display of the first letter in the %i
output, and the only hack can be safely removed without causing
problems.
2005-03-06 23:37:42 +00:00
Wayne Davison
f75a53e71b
- When --max-delete is exceeded, we now count how many deletions
...
would have happend, warn about the number skipped, and set
io_error to IOERR_DEL_LIMIT.
- When dry_run > 1 (which indicates that the destinationdir is
missing), skip deletions in that dir. This fixes a bug in a
copy that is creating the destination dir w/--delete enabled.
2005-03-05 18:58:42 +00:00
Wayne Davison
ed7e79553e
Don't try to determine the phase we're in by looking at the value
...
of csum_length -- it might have been computed to be SUM_LENGTH.
Instead, look at the "phase" variable directly.
2005-03-05 16:42:52 +00:00
Wayne Davison
ac4f91a5ee
Added a hack that sets the ITEM_REPORT_XATTRS bit (which is the old
...
ITEM_UPDATING bit) when ITEM_TRANSFER or ITEM_LOCAL_CHANGE is set.
This lets us interact compatibly when sending itemized bits to an
earlier pre-release.
2005-03-05 04:34:04 +00:00
Wayne Davison
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.
2005-03-05 00:21:42 +00:00
Wayne Davison
9497b0d4e9
Call log_item() instead of log_recv().
2005-03-04 16:08:16 +00:00
Wayne Davison
46e99b09b9
Added read_vstring() and write_vstring() to io.c instead of
...
having this code in generator.c and receiver.c.
2005-03-04 15:38:58 +00:00
Wayne Davison
33ab4ad879
Simplified whole_file variable checking.
2005-03-03 02:58:48 +00:00
Wayne Davison
e86ae6bc1f
Don't kluge the value of statret for --whole-file.
2005-03-03 01:50:43 +00:00
Wayne Davison
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.
2005-03-03 01:33:51 +00:00
Wayne Davison
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.
2005-03-03 00:14:35 +00:00
Wayne Davison
e224331729
When using multiple --compare-dest options, rsync should avoid
...
copying a file that has an exact match in any of the dirs.
2005-03-02 17:48:36 +00:00
Wayne Davison
70b54e4e43
Fixed a bug in the --dry-run output when using --link-dest.
2005-03-02 17:27:19 +00:00
Wayne Davison
9ba463435b
If the multi-dest loop falls back to the best_match index,
...
we need to re-stat() the file to restore "st".
2005-03-02 09:51:54 +00:00
Wayne Davison
aef9882581
A little more tweaking to the multi-dest option loop.
2005-03-02 09:09:15 +00:00
Wayne Davison
f62eaa24f1
Made the multi-FOO-dest loop a little nicer.
2005-03-01 19:42:31 +00:00
Wayne Davison
662bdcd4ac
Make sure that allowed_lull will not be computed as 0 if
...
io_timeout is 1.
2005-02-27 18:09:17 +00:00
Wayne Davison
18a11cfd48
- Made the calls to maybe_send_keepalive() happen at better intervals.
...
- Call do_hard_links() with its new args.
2005-02-27 09:02:32 +00:00
Wayne Davison
e6bc6f4232
We need to turn off make_backups for the redo phase so that
...
the inplace processing doesn't make a second backup.
2005-02-27 07:50:43 +00:00
Wayne Davison
b558728875
Added keep-alive checking during the directory-touching loop at
...
the end of the processing.
2005-02-26 20:43:14 +00:00
Wayne Davison
363c3ece3a
Don't allow keep-alive sending if --read-batch is enabled.
2005-02-26 19:37:49 +00:00
Wayne Davison
251f22b5d7
Fixed a line-ordering problem.
2005-02-26 19:11:57 +00:00
Wayne Davison
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.
2005-02-26 18:03:49 +00:00
Wayne Davison
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).
2005-02-26 06:52:55 +00:00
Wayne Davison
9ac2395bf0
- Call maybe_send_keepalive() if timeouts are enabled.
...
- Use the new ignore_timeout variable.
2005-02-25 22:01:36 +00:00
Wayne Davison
352963ddc3
Always set the SID_USING_ALT_BASIS appropriately for the transfer,
...
even if --inplace wasn't specified.
2005-02-22 22:12:59 +00:00
Wayne Davison
8237f9305b
We now set the ITEM_USING_ALT_BASIS flag for an --inplace transfer
...
that is using an alternate basis file (instead of sending an extra
byte after the flag word).
2005-02-22 21:43:57 +00:00
Wayne Davison
1b1fef20b3
Tweaked the rprintf() that outputs about the delta-transmission
...
enablement.
2005-02-20 22:11:43 +00:00