Wayne Davison
55dbbdeafe
Fixed inconsistencies reported by packaging/var-checker.
2010-06-30 09:17:26 -07:00
Wayne Davison
6d9207bd38
Turn some asserts into descriptive errors.
2010-06-26 16:13:58 -07:00
Wayne Davison
6b87566744
Make sure our use of idev_find() hashtable is right
...
while also supporting older rsyncs that send dev == 0.
2010-06-26 16:13:20 -07:00
Wayne Davison
d041c17c40
Avoid an dry-run error trying to stat a prior hard-link
...
file that hasn't really been created.
2009-12-12 17:22:55 -08:00
Wayne Davison
445640e803
Update the copyright year.
2009-01-17 13:41:35 -08:00
Wayne Davison
494895fb4b
Initialize xattr data in a couple spots in the hlink code, which avoids
...
a crash when the xattr pointer's memory happens to start out non-zero.
Also fixed the itemizing of an alt-dest file's xattrs when hard-linking.
2008-09-26 21:10:58 -07:00
Wayne Davison
9bed85542c
Changed flist_for_ndx() to optionally die with an error
...
if the index isn't found.
2008-08-14 07:32:18 -07:00
Wayne Davison
7ec8baaa7e
Make sure that the hlink node->data allocation doesn't fail.
2008-08-08 07:47:31 -07:00
Wayne Davison
209371b891
Fixed a bug in match_hard_links() where an empty directory would try
...
to allocate 0 bytes of memory (which can fail on some OSes).
2008-07-22 21:34:20 -07:00
Wayne Davison
fdf74bede0
- Changed prev_name into a buffer so that there is no chance that its
...
contents can be overwritten by other calls to f_name().
- Changed an hlink assert into a check that provides more debug info.
2008-04-28 21:17:36 -07:00
Wayne Davison
876ad10ccc
Fixed a crash if a non-incremental-recursion transfer has a
...
skipped file in a set of hard-links.
2008-04-27 18:45:13 -07:00
Wayne Davison
487cb52615
Fixed the discovery of a prior finished hard-link when the entry
...
is old enough that it is no longer in the flist data.
2008-03-26 16:12:39 -07:00
Wayne Davison
c9b62cf375
Fixed hard-linking when some of the files can get skipped. This adds
...
the FLAG_SKIP_HLINK flag, which gets set on any hard-linked file that
the user wants to skip (e.g. via --ignore-existing, --append, etc.).
The code in hlink.c now deals with the skipped files instead of
triggering an assert() error.
2008-03-16 19:47:35 -07:00
Wayne Davison
d3d07a5e86
Include 2008 in the copyright years.
2008-03-01 12:01:41 -08:00
Wayne Davison
e96c7777d7
Fixed return code from hard_link_one() when not verbose.
2008-02-06 16:06:33 -08:00
Wayne Davison
5288be3af7
Some minor tweaks:
...
- Improved some comments in hlink.c.
- Changed "the" to "a" in rsyncd.conf.yo.
- Improved the PATCH.name filtering loop in patch-update.
2007-12-31 20:40:51 -08:00
Wayne Davison
eb67a6909b
Don't try to process hard-link data in list-only mode.
2007-11-29 10:27:16 -08:00
Wayne Davison
3f0211b63a
New logging categories added to allow differentiation between
...
transfer errors, normal errors, and warnings. New messages are
translated into old FERROR/FINFO categories for older protocols.
2007-11-22 10:05:36 -08:00
Wayne Davison
f7a76b9c45
Some changes to allow an unsorted file list even if the iconv option
...
was disabled via configure.
2007-11-06 15:25:02 +00:00
Wayne Davison
1aa343e89c
Make last fix even better.
2007-10-21 21:52:25 +00:00
Wayne Davison
5ed353a881
Avoid dropping a hard-linked itemized output with -ii.
2007-10-21 16:50:31 +00:00
Wayne Davison
13710874ce
Changed "statx" to "stat_x" to try to work around a build problem on AIX.
2007-09-23 22:19:55 +00:00
Wayne Davison
c980db5f08
- Simplified the flist-spanning gnum logic in match_gnums().
...
- Don't use hlink_flist in hard_link_check().
- Made the prev_name logic in hard_link_check() better.
- Added an "ndx" arg to the finish_hard_link() call. Also, set the
prev value of any prior entries to the first finished item (which
ensures that any item that follows a re-shuffled item (which was
waiting for a transferred file to finish) can find the FIRST+DONE
item.
2007-09-10 06:15:25 +00:00
Wayne Davison
0eeb9f5481
If we turn off FLAG_HLINKED, set FLAG_HLINK_DONE so that any
...
file-entry values affected by HLINK_BUMP() stay put.
2007-09-04 06:53:47 +00:00
Wayne Davison
d4d6646aae
Changes to allow hard-linking to work in inc_recurse mode.
2007-09-03 21:21:17 +00:00
Wayne Davison
626065702f
Removed the old version of the hashtable functions and updated
...
the code to use the structures and functions calls.
2007-09-03 04:59:12 +00:00
Wayne Davison
8e41b68e8f
Tweaking the license text a bit more.
2007-07-10 13:55:49 +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
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +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
332cf6df7c
The --iconv option has now made it to the trunk.
2007-04-26 05:53:13 +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
3ac830b9f9
A few minor tweaks to handle the newest variable names.
2006-12-28 07:54:34 +00:00
Wayne Davison
719985cb9c
A few more minor tweaks.
2006-12-17 04:42:33 +00:00
Wayne Davison
007996b40d
Got rid of the code that sorted based on struct idev objects since
...
we always use a hardlinked group-number now.
2006-12-17 00:40:39 +00:00
Wayne Davison
c905bf37f6
Added a simple hashtable routine for hashing st_dev and st_ino info
...
on the sending side, and the support routines for the receiving side
that handle using a "group number" for each hard-link cluster rather
than having to manage a pool of dev+inode data. (For protocol 30)
2006-12-15 22:31:13 +00:00
Wayne Davison
aadc84d359
- Revamped the hard-link algorithm to save memory.
...
- Improved the function names.
- Improved a few variable names.
- Got rid of the "is a hard link" message in favor of the normal status
messages for files (e.g. --itemize-changes indicates hard-links).
- Fixed a long-standing bug when combining -H with --compare-dest.
- Made sure that code compiles when hard-linking is not available.
2006-12-09 00:23:55 +00:00
Wayne Davison
c2a608d9f1
- Use renamed hard-link defines: F_HL_IDEV() and F_HL_LIST().
2006-12-07 03:31:41 +00:00
Wayne Davison
a2ebbffca7
- Make some char* pointers const.
...
- Tweaked a couple variable names.
- Changed the #ifdefs to not define any hard-link functions
when hard-linking is disabled.
2006-12-06 01:26:11 +00:00
Wayne Davison
112d728f48
Use the latest F_*() accessors.
2006-12-05 15:59:58 +00:00
Wayne Davison
663b2857eb
Use new send_msg_int() function.
2006-12-04 02:07:37 +00:00
Wayne Davison
82ad07c418
- Typical tranfers now save 12-20 bytes per file because several vars
...
were moved out of file_struct into an optional member-var setup.
- Renamed and reorganized the FLAG_* defines.
- Use NDX_DONE instead of a literal -1 when sending/checking the
end-of-phase index value.
2006-12-03 06:44:16 +00:00
Wayne Davison
4a19c3b254
Added "const" to appropriate char pointers.
2006-11-19 00:23:21 +00:00
Wayne Davison
7b4a40ed70
Make sure the new link_dest_used value gets zeroed on init.
2006-10-17 18:49:04 +00:00
Wayne Davison
36e2ea6068
Use new FNONE value when setting/comparing enum logcode vars.
2006-10-13 07:48:35 +00:00
Wayne Davison
1a05de2bff
- If a finished link came from a link-dest dir and --dry-run is in
...
effect, we now stat the link-dest file instead of the non-existent
destination file.
- Use int32 for the index variables.
2006-10-09 03:05:19 +00:00
Wayne Davison
47c1197534
Decided that I like remove-source-files better than remove-sender-files.
2006-06-30 15:52:52 +00:00
Wayne Davison
841d943651
Handle the --remove-sender-files option by sending MSG_SUCCESS for
...
any file that is being hard-linked.
2006-06-30 15:42:29 +00:00
Wayne Davison
20f90d5e8a
Use the renamed stdout_format_has_i variable.
2006-05-29 22:56:55 +00:00