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
1faa1a6da9
Output a -vvv(erbose) message when receiving an incremental file list.
2007-05-23 00:42:32 +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
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
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
58a37ed34a
Get rid of compiler warning about iconv()'s second parameter.
2007-05-21 03:56:06 +00:00
Wayne Davison
cf1b4969b9
The recv_file_entry() function needed to remember the gid flags so that
...
it can reuse them when the gid stays the same.
2007-05-21 03:08:01 +00:00
Wayne Davison
858d45f160
Cast some F_OWNER()/F_GROUP() values to make sure that we don't get
...
a signed/unsigned compiler warning on some systems.
2007-05-21 02:17:48 +00:00
Wayne Davison
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().
2007-05-20 07:10:37 +00:00
Wayne Davison
76e754a0fd
Fixed the buildability of the file without ICONV_OPTION enabled.
2007-04-27 00:19:21 +00:00
Wayne Davison
a6e7b97868
- Fixed the merging of duplicated directory hierarchies in incremental
...
recursion mode.
- Fixed some problems with --iconv in incremental recursion mode.
2007-04-26 23:15:47 +00:00
Wayne Davison
332cf6df7c
The --iconv option has now made it to the trunk.
2007-04-26 05:53:13 +00:00
Wayne Davison
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().
2007-04-26 00:23:48 +00:00
Wayne Davison
3bb88b4388
Fixed a directory push problem with the user specified an arg
...
with a subdir followed by an arg with no subdirs.
2007-04-24 17:53:54 +00:00
Wayne Davison
9439c0cb5a
Adding the --fake-super option.
2007-04-24 07:32:44 +00:00
Wayne Davison
f14b3ef430
Verify that the modtime value is not being truncated, and complain if it is.
2007-04-20 22:39:55 +00:00
Wayne Davison
ba59bd68fc
- Call the new {read,write}_varlong30() names for the long-int
...
functions that are protocol sensitive.
- Changed the sending of the time value in protocol 30 to support
64-bit values without bloating positive 32-bit values.
2007-04-20 08:17:03 +00:00
Wayne Davison
f31514adb7
Changed the *_abbbrevint() functions to *_varint().
2007-04-20 02:17:58 +00:00
Wayne Davison
16edf86595
The improved --xattrs option is landing on the trunk.
2007-04-07 17:22:25 +00:00
Wayne Davison
63d83e9477
Improved push_dir() error reporting.
2007-03-25 17:01:48 +00:00
Wayne Davison
25c2a6ac0e
Fixed a multi-file, no-dir, relative copy, such as:
...
rsync -av lib/*.c /var/tmp/lib
2007-03-18 17:35:39 +00:00
Wayne Davison
a0456b9c46
Protocol 30 now uses MD5 checksums instead of MD4.
2007-03-18 06:00:53 +00:00
Wayne Davison
18438f0bac
Changed the sending of device major/minor numbers in protocol 30 to
...
take fewer protocol bytes and use one less bit in the XMIT_* flags.
2007-03-12 04:33:30 +00:00
Wayne Davison
057f649fc9
When a hard-linked device is duplicating the data from the prior
...
device, we need to allocate 2 extra option slots for the device
numbers.
2007-03-11 22:02:26 +00:00
Wayne Davison
6d4e718f5f
Moved the new static internal functions from rsync.h to io.h.
2007-03-11 05:43:55 +00:00
Wayne Davison
1c3344a105
The ACL support has arrived! This version has a brand new protocol
...
that makes it incompatible with all prior versions. A patch will be
provided to allow talking with older (patched) rsync versions.
2007-03-11 00:13:34 +00:00
Wayne Davison
ba2133d6ad
Further modifications to the copyright comment section.
2007-02-04 14:54:58 +00:00
Wayne Davison
100018b7cd
Mention the year 2007 in the copyright declarations.
2007-01-31 21:46:49 +00:00
Wayne Davison
7a2fa0c2d3
Changed how send_extra_file_list() checks if we have enough future work.
2007-01-30 03:57:45 +00:00
Wayne Davison
3ea6e0e7a1
Changed the variable "incremental" to "inc_recurse".
2007-01-27 14:56:09 +00:00
Wayne Davison
424d369179
Paul's patch to silence some 64-bit compiler warnings.
2007-01-23 15:24:36 +00:00
Wayne Davison
ca947dea3e
Moved the code that adds each file's length to stats.total_size
...
so that the delete code doesn't change the value.
2007-01-10 01:49:35 +00:00
Wayne Davison
9ae7a2cddb
Use write_ndx() and read_ndx().
2006-12-28 18:49:13 +00:00
Wayne Davison
98b1689dcb
Output a file-list message when verbose and using incremental recursion
...
mode.
2006-12-28 18:43:20 +00:00
Wayne Davison
42c6b13901
Restored the calling of send_file_entry() back to send_file_name()
...
(since the reason I had separated it no longer exists).
2006-12-28 15:43:30 +00:00
Wayne Davison
f1482c3391
Assign the owner and group using F_OWNER() and F_GROUP().
2006-12-28 09:42:48 +00:00
Wayne Davison
4c9d5fef07
Repositioned a misplaced assignment.
2006-12-28 08:57:25 +00:00
Wayne Davison
c7e6f84f89
New functions, variables, and file-list code to support the new
...
incremental-recursion mode.
2006-12-28 07:54:23 +00:00
Wayne Davison
1f56188f8c
Can just test ignore_errors w/o lp_ignore_errors(module_id) now.
2006-12-25 17:49:23 +00:00
Wayne Davison
99a957d3f4
Renamed flist_extra_cnt to file_extra_cnt.
2006-12-18 06:56:26 +00:00
Wayne Davison
9d737ecb7a
Got rid of the hlink_pool in favor of using the new hashtable code
...
on the receiving side. This allows us to always use a 32-bit number
to identify the hardlink clusters, even on a system where pointers
are 64-bits. Also made changes to handle the use of F_ROOTDIR() and
F_DEPTH() instead of the old union that wasted space on the
receiving side when pointers are 64-bits.
2006-12-17 00:40:28 +00:00
Wayne Davison
a3e18c763a
Use the new rounding.h file to optionally round up the count of
...
extra values we put at the start of the file_struct. Also, deal
with the extras variable no longer being in the file_struct.
2006-12-16 19:24:14 +00:00
Wayne Davison
c58c1dc446
Added a basename var to file_struct at the end, making it clearer
...
where the basename exists without actually changing how the data
is organized.
2006-12-16 07:18:41 +00:00
Wayne Davison
8cae71ebc3
For protocol 30, the sender uses the new idev_node() hashfile
...
routine to keep track of which item is the first one in a particular
hard-link cluster. It then abbreviates the sending of any follow-on
items in the cluster, reducing transfer bytes. It also omits the
sending of any dev+inode data to the receiver, saving even more xfer
bytes (since the receiver can associate the entries based on the the
group's index number that is sent when abbreviating an entry).
2006-12-15 22:31:10 +00:00
Wayne Davison
c7565dad84
Renamed XMIT_HAS_IDEV_DATA to XMIT_HLINKED.
2006-12-14 22:38:21 +00:00
Wayne Davison
6aef83c97d
Cast FILE_STRUCT_LEN & EXTRA_LEN to int for rprintf().
2006-12-12 20:42:06 +00:00
Wayne Davison
263d3bfb40
Neaten some function formatting.
2006-12-12 14:58:10 +00:00
Wayne Davison
9d155ecd12
Changed the hlink_pool variable to be a global since only the main
...
file list ever has a pool for hard-linking.
2006-12-09 00:23:51 +00:00
Wayne Davison
60af946576
Explicitly cast the length values down to an uint32 so that some
...
compilers don't complain about the value getting smaller.
2006-12-08 21:02:11 +00:00
Wayne Davison
4785cd43d1
- Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR().
...
- Use renamed F_HL_IDEV() define.
2006-12-07 03:31:34 +00:00