rsync-patches.git
10 years agoA few more fixes:
Wayne Davison [Tue, 2 Jul 2013 01:20:14 +0000 (18:20 -0700)]
A few more fixes:

- Run BEGIN again (for sqlite) if we get a lock error.
- Fixed some extraneous outputting of ?5 differences.

10 years agoLots of DB improvements and fixes:
Wayne Davison [Tue, 2 Jul 2013 00:01:13 +0000 (17:01 -0700)]
Lots of DB improvements and fixes:

- DB tables are slightly changed -- be sure to use --init --mounts and
  start your DB over (or rename the tables and convert manually).
- Implemented --mounts in the binary version, using a new helper script.
- Fixed a huge bug in the "rsyncdb --check" updating (some of the old
  logic was still expecting --check to not do updates).
- Fixed the outputting of ?4 & ?5 in the checksum info.
- Added --debug=DB5 output (needs more tweaking, but is a good start).
- rsyncdb defaults to being more verbose, so --verbose went away and
  --quiet was added.
- rsyncdb now defaults to --sums=5, not --sums=4,5.
- Added a "transaction: 1" setting in the db.conf, which really speeds
  up sqlite.
- Added more sqlite looping when something fails due to a write lock.
- Improved --delayed-update to set the latest ctime on the final file
  after it is renamed (otherwise only --db-lax would be able to read
  the receiver's stored checksums).  If --db-lax is specified, we skip
  this extra lstat() + DB update.
- Make sure that db_disconnect() is called from the receiver and the
  sender.
- Use int64 type instead of "long long".

10 years agoImprove sqlite locked-db handling.
Wayne Davison [Mon, 24 Jun 2013 17:01:06 +0000 (10:01 -0700)]
Improve sqlite locked-db handling.

10 years agoMisc improvements:
Wayne Davison [Sun, 23 Jun 2013 06:07:22 +0000 (23:07 -0700)]
Misc improvements:

- Change rsyncdb to be a symlink to rsync, which now can handle the
  job either by checking the program name or via --db-only=CONFIG.
- Make --db-lax an option (as well as "db lax" for daemons).
- A local rsync copy now shares the db setting for src and dest.
- Added --no-db; e.g. rsync -a --db=foo.conf -M--no-db /src /dest.
- Rsync can now cache the MD5 checksum on the receiving side for any
  copied file, even w/o --checksum (as long as --db is specified).
- Implemented --init in the C version (--mounts is still pending).
- Improved docs, including rsyncdb.1 manpage.

10 years agoChange dir-making routine in handle_partial_dir().
Wayne Davison [Sun, 16 Jun 2013 23:20:46 +0000 (16:20 -0700)]
Change dir-making routine in handle_partial_dir().

10 years agoAdding Dag's direct-IO patch.
Wayne Davison [Sun, 16 Jun 2013 22:43:03 +0000 (15:43 -0700)]
Adding Dag's direct-IO patch.

10 years agoThe sum_as_hex() function is now in the main code.
Wayne Davison [Wed, 12 Jun 2013 06:21:08 +0000 (23:21 -0700)]
The sum_as_hex() function is now in the main code.

10 years agoCreate C version of rsyncdb (maintenance) program.
Wayne Davison [Tue, 11 Jun 2013 20:52:20 +0000 (13:52 -0700)]
Create C version of rsyncdb (maintenance) program.

10 years agoLots of improvements:
Wayne Davison [Sat, 8 Jun 2013 23:25:19 +0000 (16:25 -0700)]
Lots of improvements:

- Handle sqlite locked-DB when connecting.
- Improved sqlite error logging.
- Added a new "no_ctime" option to the db-config file.
- The support/rsyncdb script now has new options, better output, and
  various fixes.

10 years agoNew hashdir layout and simplified updating logic.
Wayne Davison [Sun, 2 Jun 2013 19:12:49 +0000 (12:12 -0700)]
New hashdir layout and simplified updating logic.

The old code did a byte-for-byte file comparison of every file it
wanted to link into the link dirs, which was very wasteful.  The new
code incorporates the file length into the filename and relies on the
good-enough uniqueness of the md5 sum + file-length.

The old directory structure started with an 8-char prefix of the hash,
which is pretty much unique for a normal set of files, making the hash
buckets essentially useless.  The new code uses 3-char hash buckets,
3-dirs deep, and puts any overflow names (if any files reach max links)
into the final hash dir (not a dir dedicated to each hash).

For instance, given file of length 54321 and its 32-char hex hash:

Was: 12345678/901234567890123456789012/0
Now: 123/456/789/01234567890123456789012.54321.0

I also fixed the sanitizing of link-by-hash dir into a daemon module.

10 years agoFix compilation issues and general update.
Wayne Davison [Sun, 2 Jun 2013 18:58:28 +0000 (11:58 -0700)]
Fix compilation issues and general update.

11 years agoFix manpage typo & Updated to apply cleanly.
Wayne Davison [Sun, 23 Sep 2012 18:58:52 +0000 (11:58 -0700)]
Fix manpage typo & Updated to apply cleanly.

12 years agoApplied to the main code as option --outbuf=N|L|B.
Wayne Davison [Sat, 28 Jan 2012 20:10:10 +0000 (12:10 -0800)]
Applied to the main code as option --outbuf=N|L|B.

12 years agoSome more changes inspired by Chris Dunlap's work.
Wayne Davison [Fri, 16 Dec 2011 02:49:49 +0000 (18:49 -0800)]
Some more changes inspired by Chris Dunlap's work.

12 years agoFix a buffer overflow and unify sum hexification code.
Wayne Davison [Mon, 12 Dec 2011 07:01:35 +0000 (23:01 -0800)]
Fix a buffer overflow and unify sum hexification code.

12 years agoUpdated to apply cleanly.
Wayne Davison [Sat, 8 Oct 2011 16:23:17 +0000 (09:23 -0700)]
Updated to apply cleanly.

12 years agoAvoid bogus handling of UNREAD_DATA return.
Wayne Davison [Mon, 1 Aug 2011 05:54:54 +0000 (22:54 -0700)]
Avoid bogus handling of UNREAD_DATA return.

12 years agoFix hfs_receiver_check() on a relative path.
Wayne Davison [Mon, 4 Jul 2011 22:34:09 +0000 (15:34 -0700)]
Fix hfs_receiver_check() on a relative path.

12 years agoUpdated to fix a couple compile errors and to apply cleanly.
Wayne Davison [Sat, 25 Jun 2011 16:00:41 +0000 (09:00 -0700)]
Updated to fix a couple compile errors and to apply cleanly.

13 years agoOptimize transliterate logic a bit.
Wayne Davison [Sat, 9 Apr 2011 18:24:52 +0000 (11:24 -0700)]
Optimize transliterate logic a bit.

13 years agoMaking backup-dir-dels depend on backup-deleted.
Wayne Davison [Sat, 9 Apr 2011 16:45:47 +0000 (09:45 -0700)]
Making backup-dir-dels depend on backup-deleted.

13 years agoAdding backup-deleted patch adapted from bug 7889
Wayne Davison [Sat, 9 Apr 2011 16:15:56 +0000 (09:15 -0700)]
Adding backup-deleted patch adapted from bug 7889
by Jonathan Kamens.

13 years agoAvoid useless newline tweaking.
Wayne Davison [Sat, 9 Apr 2011 16:06:11 +0000 (09:06 -0700)]
Avoid useless newline tweaking.

13 years agoUpdated to apply cleanly.
Wayne Davison [Tue, 5 Apr 2011 04:58:07 +0000 (21:58 -0700)]
Updated to apply cleanly.

13 years agoApplied preallocate patch to the trunk.
Wayne Davison [Tue, 5 Apr 2011 04:38:55 +0000 (21:38 -0700)]
Applied preallocate patch to the trunk.

13 years agoMore OS X patch tweaks.
Wayne Davison [Sat, 26 Mar 2011 21:22:46 +0000 (14:22 -0700)]
More OS X patch tweaks.

13 years agoSome fixes derived from Mike's latest patch and a set_file_attrs() change
Wayne Davison [Thu, 17 Mar 2011 18:31:44 +0000 (11:31 -0700)]
Some fixes derived from Mike's latest patch and a set_file_attrs() change
to avoid superfluous xattr setting on hard-linked files.

13 years agoAdapted for 3.1.0.dev.
Wayne Davison [Mon, 14 Mar 2011 06:17:48 +0000 (23:17 -0700)]
Adapted for 3.1.0.dev.

13 years agoFix a couple compile issues.
Wayne Davison [Mon, 14 Mar 2011 06:01:10 +0000 (23:01 -0700)]
Fix a couple compile issues.

13 years agoFix setting of fileflags value for an abbreviated hlink entry.
Wayne Davison [Sat, 12 Mar 2011 19:40:30 +0000 (11:40 -0800)]
Fix setting of fileflags value for an abbreviated hlink entry.

13 years agoUpdated patches to work with the latest code.
Wayne Davison [Tue, 22 Feb 2011 03:14:29 +0000 (19:14 -0800)]
Updated patches to work with the latest code.

13 years agoThe main code now excludes xattrs on devices for OS X.
Wayne Davison [Tue, 22 Feb 2011 03:03:29 +0000 (19:03 -0800)]
The main code now excludes xattrs on devices for OS X.

13 years agoRevised version was applied to 3.1.0dev source.
Wayne Davison [Tue, 4 Jan 2011 01:12:56 +0000 (17:12 -0800)]
Revised version was applied to 3.1.0dev source.

13 years agoUse do_ftruncate() for the added call too.
Wayne Davison [Sat, 6 Nov 2010 17:41:39 +0000 (10:41 -0700)]
Use do_ftruncate() for the added call too.

13 years agoHandle do_ftruncate() change and avoid extra stat().
Wayne Davison [Sat, 6 Nov 2010 17:14:53 +0000 (10:14 -0700)]
Handle do_ftruncate() change and avoid extra stat().

13 years agoHandle do_ftruncate() change.
Wayne Davison [Sat, 6 Nov 2010 17:14:16 +0000 (10:14 -0700)]
Handle do_ftruncate() change.

13 years agoGetting rid of cache fiddling.
Wayne Davison [Sat, 6 Nov 2010 15:59:33 +0000 (08:59 -0700)]
Getting rid of cache fiddling.

13 years agoRemoving applied patch.
Wayne Davison [Tue, 12 Oct 2010 17:53:46 +0000 (10:53 -0700)]
Removing applied patch.

13 years agoAvoid setting creation time on root dir of HFS+ volume.
Wayne Davison [Sat, 18 Sep 2010 17:22:42 +0000 (10:22 -0700)]
Avoid setting creation time on root dir of HFS+ volume.
Fixes #7685.

13 years agoUpdated patches to work with the latest master.
Wayne Davison [Sat, 18 Sep 2010 17:18:58 +0000 (10:18 -0700)]
Updated patches to work with the latest master.

13 years agoCommitting Uri Simchoni's improved ssl patch.
Wayne Davison [Sat, 19 Jun 2010 18:37:37 +0000 (11:37 -0700)]
Committing Uri Simchoni's improved ssl patch.
(With some cleanup by Wayne.)

14 years agoUpdated patches to work with the latest trunk.
Wayne Davison [Sat, 24 Apr 2010 17:26:09 +0000 (10:26 -0700)]
Updated patches to work with the latest trunk.

14 years agoFix alignment issue on 64-bit. Solution from Steve Ortiz.
Wayne Davison [Thu, 11 Feb 2010 18:15:21 +0000 (10:15 -0800)]
Fix alignment issue on 64-bit.  Solution from Steve Ortiz.

14 years agoChange "long" to "uint32" in the create_time struct.
Wayne Davison [Sat, 6 Feb 2010 21:53:19 +0000 (13:53 -0800)]
Change "long" to "uint32" in the create_time struct.

14 years agoUpdated patches to work with the current trunk.
Wayne Davison [Wed, 30 Dec 2009 22:09:55 +0000 (14:09 -0800)]
Updated patches to work with the current trunk.

14 years agoFix configure check for fallocate().
Wayne Davison [Tue, 29 Dec 2009 19:09:18 +0000 (11:09 -0800)]
Fix configure check for fallocate().

14 years agoHave configure check if fallocate() actually links, which works
Wayne Davison [Tue, 29 Dec 2009 18:33:56 +0000 (10:33 -0800)]
Have configure check if fallocate() actually links, which works
around a glibc bug for a missing fallocate64() call.  Added detection
and support for fallocate()'s FALLOC_FL_KEEP_SIZE.

14 years agoUpdated patches to work with the current trunk.
Wayne Davison [Tue, 8 Dec 2009 00:16:03 +0000 (16:16 -0800)]
Updated patches to work with the current trunk.

14 years agoTweaked a couple sentences.
Wayne Davison [Thu, 12 Nov 2009 01:24:59 +0000 (17:24 -0800)]
Tweaked a couple sentences.

14 years agoAdded write-devices.diff patch from Darryl Dixon.
Wayne Davison [Wed, 21 Oct 2009 05:05:38 +0000 (22:05 -0700)]
Added write-devices.diff patch from Darryl Dixon.

14 years agoGot rid of unneeded ./prepare-source instruction.
Wayne Davison [Wed, 21 Oct 2009 05:05:19 +0000 (22:05 -0700)]
Got rid of unneeded ./prepare-source instruction.

14 years agoAdding group-auth patch; updating patches.
Wayne Davison [Wed, 21 Oct 2009 03:00:07 +0000 (20:00 -0700)]
Adding group-auth patch; updating patches.

14 years agoAdding --list and --check options to xsums perl script.
Wayne Davison [Sun, 24 May 2009 21:16:19 +0000 (14:16 -0700)]
Adding --list and --check options to xsums perl script.

14 years agoAdding filter-attribute-mods patch; updating patches.
Wayne Davison [Sat, 23 May 2009 20:10:37 +0000 (13:10 -0700)]
Adding filter-attribute-mods patch; updating patches.

15 years agoUpdated patches to work with the current trunk.
Wayne Davison [Fri, 13 Mar 2009 17:32:54 +0000 (10:32 -0700)]
Updated patches to work with the current trunk.

15 years agoUse "use warnings" rather than -w on the #! line.
Wayne Davison [Tue, 13 Jan 2009 22:59:17 +0000 (14:59 -0800)]
Use "use warnings" rather than -w on the #! line.

15 years agoApplying uid/gid fix from trunk.
Wayne Davison [Tue, 13 Jan 2009 20:12:56 +0000 (12:12 -0800)]
Applying uid/gid fix from trunk.

15 years agoThe patches for 3.0.5. v3.0.5
Wayne Davison [Mon, 29 Dec 2008 02:07:25 +0000 (18:07 -0800)]
The patches for 3.0.5.

15 years agoThe patches for 3.0.5pre2. v3.0.5pre2
Wayne Davison [Sun, 16 Nov 2008 01:23:28 +0000 (17:23 -0800)]
The patches for 3.0.5pre2.

15 years agoThe patches for 3.0.5pre1. v3.0.5pre1
Wayne Davison [Sat, 11 Oct 2008 18:50:29 +0000 (11:50 -0700)]
The patches for 3.0.5pre1.

15 years agoFixed a problem when --crtimes was combined with --hard-links.
Wayne Davison [Sat, 11 Oct 2008 18:44:40 +0000 (11:44 -0700)]
Fixed a problem when --crtimes was combined with --hard-links.

15 years agoAdding --chown=USER:GROUP alias for simple usecases of the
Wayne Davison [Sat, 13 Sep 2008 02:15:33 +0000 (19:15 -0700)]
Adding --chown=USER:GROUP alias for simple usecases of the
--usermap and --groupmap options.

15 years agoThe patches for 3.0.4. v3.0.4
Wayne Davison [Sat, 6 Sep 2008 16:36:27 +0000 (09:36 -0700)]
The patches for 3.0.4.

15 years agoThe patches for 3.0.4pre2. v3.0.4pre2
Wayne Davison [Sat, 2 Aug 2008 21:46:07 +0000 (14:46 -0700)]
The patches for 3.0.4pre2.

15 years agoAdded the munge-links.diff patch.
Wayne Davison [Mon, 28 Jul 2008 23:39:23 +0000 (16:39 -0700)]
Added the munge-links.diff patch.

15 years agoAdded the dparam.diff patch.
Wayne Davison [Mon, 28 Jul 2008 14:23:29 +0000 (07:23 -0700)]
Added the dparam.diff patch.

15 years agoThe patches for 3.0.4pre1. v3.0.4pre1
Wayne Davison [Fri, 25 Jul 2008 13:56:40 +0000 (06:56 -0700)]
The patches for 3.0.4pre1.

15 years ago- Added the ability to match a range of ID numbers.
Wayne Davison [Fri, 25 Jul 2008 13:49:33 +0000 (06:49 -0700)]
- Added the ability to match a range of ID numbers.
- Fixed a bug in recv_add_id() where translated IDs were being added
  to the map list instead of the translated ID list.
- Reject an attempt to specify more than one --usermap or --groupmap
  option.

15 years agoImproved the %C (checksum) escape to work for all files when the
Wayne Davison [Fri, 25 Jul 2008 13:48:42 +0000 (06:48 -0700)]
Improved the %C (checksum) escape to work for all files when the
--checksum option is specified.

15 years agoThe patches for 3.0.3. v3.0.3
Wayne Davison [Mon, 30 Jun 2008 04:14:01 +0000 (21:14 -0700)]
The patches for 3.0.3.

15 years agoThe patches for 3.0.3pre3. v3.0.3pre3
Wayne Davison [Mon, 23 Jun 2008 02:16:59 +0000 (19:16 -0700)]
The patches for 3.0.3pre3.

15 years agoMoved the xattr-skipping on device/special files out of the
Wayne Davison [Tue, 17 Jun 2008 14:18:21 +0000 (07:18 -0700)]
Moved the xattr-skipping on device/special files out of the
fileflags.diff into its own patch (osx-xattr-nodev.diff).

15 years agoFixed the device/special discarding in get_xattr().
Wayne Davison [Sat, 24 May 2008 16:56:44 +0000 (09:56 -0700)]
Fixed the device/special discarding in get_xattr().

15 years agoThe patches for 3.0.3pre2. v3.0.3pre2
Wayne Davison [Sat, 17 May 2008 17:44:56 +0000 (10:44 -0700)]
The patches for 3.0.3pre2.

15 years agoThe patches for 3.0.3pre1. v3.0.3pre1
Wayne Davison [Thu, 8 May 2008 06:13:48 +0000 (23:13 -0700)]
The patches for 3.0.3pre1.

16 years agoThe patches for 3.0.1 and 3.0.2. v3.0.1 v3.0.2
Wayne Davison [Fri, 4 Apr 2008 06:56:49 +0000 (23:56 -0700)]
The patches for 3.0.1 and 3.0.2.

16 years agoThe patches for 3.0.1pre3. v3.0.1pre3
Wayne Davison [Mon, 31 Mar 2008 06:48:35 +0000 (23:48 -0700)]
The patches for 3.0.1pre3.

16 years agoThe patches for 3.0.1pre2. v3.0.1pre2
Wayne Davison [Fri, 28 Mar 2008 01:51:15 +0000 (18:51 -0700)]
The patches for 3.0.1pre2.

16 years agoThe patches for 3.0.1pre1. v3.0.1pre1
Wayne Davison [Tue, 25 Mar 2008 05:24:02 +0000 (22:24 -0700)]
The patches for 3.0.1pre1.

16 years agoThe patches for 3.0.0. v3.0.0
Wayne Davison [Sat, 1 Mar 2008 20:16:09 +0000 (20:16 +0000)]
The patches for 3.0.0.

16 years agoRenamed flags.diff fileflags.diff.
Wayne Davison [Sat, 1 Mar 2008 20:16:00 +0000 (20:16 +0000)]
Renamed flags.diff fileflags.diff.

16 years agoThe patches for 3.0.0pre10.
Wayne Davison [Wed, 20 Feb 2008 02:32:07 +0000 (02:32 +0000)]
The patches for 3.0.0pre10.

16 years agoThe patches for 3.0.0pre9.
Wayne Davison [Mon, 11 Feb 2008 04:20:31 +0000 (04:20 +0000)]
The patches for 3.0.0pre9.

16 years agoThe patches for 3.0.0pre8.
Wayne Davison [Sat, 12 Jan 2008 18:57:10 +0000 (18:57 +0000)]
The patches for 3.0.0pre8.

16 years agoThe patches for 3.0.0pre7.
Wayne Davison [Sun, 16 Dec 2007 23:13:34 +0000 (23:13 +0000)]
The patches for 3.0.0pre7.

16 years agoThe patches for 3.0.0pre6.
Wayne Davison [Wed, 28 Nov 2007 09:24:43 +0000 (09:24 +0000)]
The patches for 3.0.0pre6.

16 years agoMy improved version of a connection-timeout patch.
Wayne Davison [Sun, 11 Nov 2007 15:03:24 +0000 (15:03 +0000)]
My improved version of a connection-timeout patch.

16 years agoFixed failing hunks.
Wayne Davison [Fri, 9 Nov 2007 04:12:58 +0000 (04:12 +0000)]
Fixed failing hunks.

16 years agoMatt's transliterate patch.
Wayne Davison [Tue, 6 Nov 2007 18:14:36 +0000 (18:14 +0000)]
Matt's transliterate patch.

16 years agoFixed failing hunks.
Wayne Davison [Tue, 6 Nov 2007 15:39:11 +0000 (15:39 +0000)]
Fixed failing hunks.

16 years agoCleanup patch fuzz.
Wayne Davison [Sat, 3 Nov 2007 16:42:49 +0000 (16:42 +0000)]
Cleanup patch fuzz.

16 years agoFixed failing hunks.
Wayne Davison [Sat, 3 Nov 2007 16:36:57 +0000 (16:36 +0000)]
Fixed failing hunks.

16 years agoImproved a comment.
Wayne Davison [Sat, 3 Nov 2007 07:20:12 +0000 (07:20 +0000)]
Improved a comment.

16 years agoFixed failing hunks.
Wayne Davison [Tue, 30 Oct 2007 02:35:03 +0000 (02:35 +0000)]
Fixed failing hunks.

16 years agoImproved the rsyncsums script to have a --check mode.
Wayne Davison [Mon, 29 Oct 2007 20:44:16 +0000 (20:44 +0000)]
Improved the rsyncsums script to have a --check mode.

16 years agoA little more cleanup.
Wayne Davison [Sat, 27 Oct 2007 06:14:01 +0000 (06:14 +0000)]
A little more cleanup.

16 years agoAllow for more -p info.
Wayne Davison [Sat, 27 Oct 2007 06:00:44 +0000 (06:00 +0000)]
Allow for more -p info.

16 years agoGot rid of patch fuzz.
Wayne Davison [Sat, 27 Oct 2007 05:08:37 +0000 (05:08 +0000)]
Got rid of patch fuzz.

16 years agoFixed failing hunks.
Wayne Davison [Sat, 27 Oct 2007 05:07:29 +0000 (05:07 +0000)]
Fixed failing hunks.

16 years agoGot rid of some cruft.
Wayne Davison [Sat, 27 Oct 2007 05:02:40 +0000 (05:02 +0000)]
Got rid of some cruft.