Wayne Davison
032dcf74b0
Check the "keep_dirs" var instead of "recurse" to decide if
...
delete-after is appropriate.
2005-01-22 22:48:37 +00:00
Wayne Davison
51d4839861
- We now set a delete_before variable for the --delete option.
...
- Reordered some of the options in the --help list.
- Made the popt-handling of the delete options simpler.
- Parse the new --keep-dirs option.
- Parse the new --list-only option.
- Set recurse to -1 (infinite) for the -r and -a options.
- Set keep_dirs for --list-only.
2005-01-22 22:48:34 +00:00
Wayne Davison
9f125ea7c1
- Implemented a new handling of the recurse variable: if it is
...
< 0, it specifies infinite recursion, otherwise it contains a
count of how many levels of recursion we will allow.
- If the user is processing/listing a non-recursive directory/
arg, send the contents.
2005-01-22 22:48:31 +00:00
Wayne Davison
9bcb25958d
- Mustn't override a user-specified list_only value.
...
- Moved the computing of the options for the server down until
after we've figured out the protocol_version for the transfer.
- If we're talking to a protocol-29 server in list-only mode,
force the new --list-only mode (which avoids the -r with
--exclude="/*/*" kluge).
- Output the options we sent to the daemon if verbose > 1.
2005-01-22 22:48:27 +00:00
Wayne Davison
866925bfb7
Changed the order of a few of the options in the options summary.
2005-01-22 20:32:03 +00:00
Wayne Davison
f8b3c05311
Mustn't override a user-specified list_only value.
2005-01-22 20:28:17 +00:00
Wayne Davison
353f272434
Changed a comment.
2005-01-22 20:27:22 +00:00
Wayne Davison
3d54c6ec46
Moved the /proc/mounts literal string nearer to the top.
2005-01-22 08:11:43 +00:00
Wayne Davison
71e27c463d
- Changed XMIT_TOP_DIR to XMIT_DEL_START.
...
- Changed FLAG_TOP_DIR to FLAG_DEL_START.
2005-01-21 00:34:37 +00:00
Wayne Davison
8c48382049
Don't mention when the file-list is first allocated, just when it
...
expands.
2005-01-20 23:57:35 +00:00
Wayne Davison
11781089d1
In delete_file(): got rid of DEL_NO_RECURSE code and added
...
DEL_RECURSE code. Improved the verbose output of a recursively
deleted directory when --dry-run is specified.
2005-01-20 23:51:57 +00:00
Wayne Davison
d97fd43a72
Decided that delete_in_dir()'s call to delete_file() would be
...
better using DEL_RECURSE.
2005-01-20 23:51:55 +00:00
Wayne Davison
f5ea4b3b39
Changed DEL_NO_RECURSE to DEL_RECURSE.
2005-01-20 23:51:52 +00:00
Wayne Davison
f227ffe4b9
Moved the dry_run check in set_perms() so that it only triggers if
...
we don't have a stat-buffer (and returns 1, not 0).
2005-01-20 23:01:34 +00:00
Wayne Davison
027428eb1d
Got rid of the erroneous --dry-run short-circuit in the directory
...
handling.
2005-01-20 22:59:54 +00:00
Wayne Davison
15778afbdc
In set_modtime(), the verbose message should be output even if
...
--dry-run was specified.
2005-01-20 22:58:30 +00:00
Wayne Davison
d06f63287e
- Got rid of the uint64 typedef.
...
- Changed the dev/inode vars to use int64.
2005-01-20 22:43:32 +00:00
Wayne Davison
1490812ab2
Switched uint64 vars over to int64.
2005-01-20 22:42:47 +00:00
Wayne Davison
707415d4fc
Use int64 instead of uint64.
2005-01-20 22:37:38 +00:00
Wayne Davison
9cea6ef1b6
Improved a confusing sentence in the description of subcomponent
...
include/exclude matching.
2005-01-20 19:31:42 +00:00
Wayne Davison
48ea74bf01
When outputting the file list created for the delete pass, identify
...
it as such.
2005-01-20 00:53:15 +00:00
Wayne Davison
026deaf759
Added an example of running mnt-excl remotely via ssh for a pull.
2005-01-19 21:07:09 +00:00
Wayne Davison
4c59971194
A perl script that outputs excludes for all mount points that affect
...
the supplied source dir (or all mount points if the arg is omitted).
The excludes are appropriately anchored relative to the supplied dir,
and honor rsync's trailing-slash idiom.
2005-01-19 21:00:26 +00:00
Wayne Davison
fd8571c2c9
Mention a change in the verbose output when deleting directories.
2005-01-19 20:32:25 +00:00
Wayne Davison
dd096ae080
- Updated delete_file() to take a flag arg that makes it more
...
flexible. Optimized away a stat() call since the caller knows
if the item to delete is a directory or not.
- Tweaked delete_file()'s "deleting ..." messages to include a
trailing slash when we're deleting a directory.
- No need for conditional code around do_lstat() anymore.
2005-01-19 20:11:03 +00:00
Wayne Davison
eb1accaa91
Define the new DEL_* flags.
2005-01-19 20:11:00 +00:00
Wayne Davison
7e38410e47
- Moved write_sum_head() to io.c.
...
- Use the new delete_file() calling syntax.
2005-01-19 20:10:57 +00:00
Wayne Davison
d336388403
Got rid of delete_one() since we can (and do) use the updated
...
delete_file() call now.
2005-01-19 20:10:53 +00:00
Wayne Davison
c207d7ec62
Moved write_sum_head() here from generator.c.
2005-01-19 20:10:50 +00:00
Wayne Davison
018b28328c
No need for conditional code around do_lstat() anymore.
2005-01-19 19:30:29 +00:00
Wayne Davison
0957a7463e
When SUPPORT_LINKS is not defined, we now go ahead and provide
...
the do_lstat() function and just have it call do_stat().
2005-01-19 19:29:20 +00:00
Wayne Davison
c72f5bd9c4
A slight simplification to the no-implied-dirs change.
2005-01-19 00:34:13 +00:00
Wayne Davison
0f57446da7
Use the new "keep_dirs" var instead of separately checking the
...
"recurse" and "files_from" vars. This also simplifies the case
where the code wants to send the implied dirs without recursing.
2005-01-19 00:24:35 +00:00
Wayne Davison
3a90ea0acd
- Added new int, keep_dirs, which is set if either recurse or
...
files_from was specified.
- Pass the the sender the --no-implied-dirs option if --relative
was specified (or implied) and the sender is not the client.
2005-01-19 00:23:32 +00:00
Paul Green
58af2f958c
Fix typo in handling of lchown when the host operating system does
...
not implement it. It should get mapped to chown.
2005-01-18 21:19:42 +00:00
Wayne Davison
a8fd4161bb
Mention the latest changes.
2005-01-17 23:55:15 +00:00
Wayne Davison
53f8519a38
For --inplace over protocol-version 29 or greater, read the
...
type the type of basis file the generator is using from the
socket and set the new updating_basis_file var.
2005-01-17 23:11:26 +00:00
Wayne Davison
eb162f3b0a
Mention the change in restrictions for --inplace. Also talk about
...
how --backup makes an --inplace transfer more optimal.
2005-01-17 23:11:22 +00:00
Wayne Davison
4ce838e1f1
We don't need to complain about --inplace being combined with one
...
of the --FOO-dest options anymore.
2005-01-17 23:11:18 +00:00
Wayne Davison
a36ffd3910
Changed the checks for --inplace to use the new updating_basis_file
...
variable.
2005-01-17 23:11:13 +00:00
Wayne Davison
17b5b32f75
For --inplace over protocol-version 29 or greater, tell the
...
sender what kind of a basis file we've selected.
2005-01-17 23:11:05 +00:00
Wayne Davison
9b919d590a
- Moved read_sum_head() to io.c (because the generator uses it too).
...
- Tweaked the read_size var (formerly map_size) that gets passed to
map_file().
2005-01-17 22:51:29 +00:00
Wayne Davison
80264051d8
Tweaked the read_size var (formerly map_size) that gets passed to
...
map_file().
2005-01-17 22:51:27 +00:00
Wayne Davison
188fed9570
Moved read_sum_head() here from sender.c (because the generator uses it
...
too) and improved it with better error checking.
2005-01-17 22:51:24 +00:00
Wayne Davison
eae7165c79
Make sure that we don't compute a block size larger than MAX_BLOCK_SIZE.
2005-01-17 22:51:21 +00:00
Wayne Davison
54281fe733
- Changed the map_size parameter to map_file() to be an int32 named
...
"read_size".
- Changed some int vars in map_ptr() needed to be int32 vars.
- All callers expect map_ptr() to return back the full "len" bytes,
so we never shorten this value, even near EOF--the read will
just get zero-padded, as needed.
- Die with an error if someone calls map_ptr() with a len < 0, or
if read_size is computed as a value < 0.
2005-01-17 22:51:17 +00:00
Wayne Davison
2b2ea368aa
- Incremented the PROTOCOL_VERSION to 29.
...
- Added define for MAX_BLOCK_SIZE.
- Reorder the variables in the structure defs to sort by size.
- Some vars in map_struct needed to be int32 instead of int.
2005-01-17 22:51:15 +00:00
Wayne Davison
67a28eb256
Got rid of an unneeded assert().
2005-01-17 22:25:53 +00:00
Wayne Davison
f5d96a6f80
Added a commented-out RSYNC initialization that uses valgrind.
2005-01-17 22:24:08 +00:00
Wayne Davison
44ac015598
Put double-quotes around the --rsync-path arg.
2005-01-17 22:23:09 +00:00