HP-UX 11i and largefiles on rsync 2.6.2

Wayne Davison wayned at samba.org
Thu Jul 15 16:28:10 GMT 2004


On Wed, Jul 14, 2004 at 04:46:41PM -0400, Don Malloy wrote:
> The rsync transfers always fail at the 2GB mark.

There is a bug in the large-file support of 2.6.2 that is fixed by the
attached patch.  Either apply it using "patch" or manually edit the
size_t to OFF_T manually, recompile, and give the resulting rsync a try.

..wayne..
-------------- next part --------------
--- generator.c	13 Jul 2004 01:45:51 -0000	1.95
+++ generator.c	14 Jul 2004 16:40:08 -0000	1.96
@@ -205,7 +205,7 @@
  *
  * Generate approximately one checksum every block_len bytes.
  */
-static void generate_and_send_sums(struct map_struct *buf, size_t len, int f_out)
+static void generate_and_send_sums(struct map_struct *buf, OFF_T len, int f_out)
 {
 	size_t i;
 	struct sum_struct sum;


More information about the rsync mailing list