librsync-0.9.7-largefiles.patch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. RCS file: /cvsroot/librsync/librsync/mdfour.h,v
  2. retrieving revision 1.7
  3. retrieving revision 1.8
  4. Index: mdfour.h
  5. ===================================================================
  6. --- mdfour.h.orig 2004-02-08 00:17:57.000000000 +0100
  7. +++ mdfour.h 2007-09-02 10:10:50.000000000 +0200
  8. @@ -1,7 +1,7 @@
  9. /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
  10. *
  11. * librsync -- the library for network deltas
  12. - * $Id: mdfour.h,v 1.7 2003/10/17 16:15:21 abo Exp $
  13. + * $Id: mdfour.h,v 1.8 2006/03/10 10:44:10 abo Exp $
  14. *
  15. * Copyright (C) 2000, 2001 by Martin Pool <mbp@samba.org>
  16. * Copyright (C) 2002, 2003 by Donovan Baarda <abo@minkirri.apana.org.au>
  17. @@ -24,7 +24,7 @@
  18. #include "types.h"
  19. struct rs_mdfour {
  20. - int A, B, C, D;
  21. + unsigned int A, B, C, D;
  22. #if HAVE_UINT64
  23. uint64_t totalN;
  24. #else
  25. Index: patch.c
  26. ===================================================================
  27. --- patch.c.orig 2004-09-17 23:35:50.000000000 +0200
  28. +++ patch.c 2007-09-02 10:10:50.000000000 +0200
  29. @@ -1,7 +1,7 @@
  30. /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*-
  31. *
  32. * librsync -- the library for network deltas
  33. - * $Id: patch.c,v 1.30 2004/09/10 02:48:58 mbp Exp $
  34. + * $Id: patch.c,v 1.31 2006/03/10 10:44:10 abo Exp $
  35. *
  36. * Copyright (C) 2000, 2001 by Martin Pool <mbp@samba.org>
  37. *
  38. @@ -214,12 +214,9 @@ static rs_result rs_patch_s_copying(rs_j
  39. void *buf, *ptr;
  40. rs_buffers_t *buffs = job->stream;
  41. - len = job->basis_len;
  42. -
  43. /* copy only as much as will fit in the output buffer, so that we
  44. * don't have to block or store the input. */
  45. - if (len > buffs->avail_out)
  46. - len = buffs->avail_out;
  47. + len = (buffs->avail_out < job->basis_len) ? buffs->avail_out : job->basis_len;
  48. if (!len)
  49. return RS_BLOCKED;
  50. Index: doc/rdiff.1
  51. ===================================================================
  52. --- doc/rdiff.1.orig 2004-02-08 00:17:57.000000000 +0100
  53. +++ doc/rdiff.1 2007-09-02 10:10:50.000000000 +0200
  54. @@ -1,6 +1,6 @@
  55. .\"
  56. .\" librsync -- dynamic caching and delta update in HTTP
  57. -.\" $Id: rdiff.1,v 1.1 2002/01/25 21:25:34 bje Exp $
  58. +.\" $Id: rdiff.1,v 1.2 2006/02/21 12:21:52 abo Exp $
  59. .\"
  60. .\" Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au>
  61. .\"
  62. @@ -18,7 +18,7 @@
  63. .\" License along with this program; if not, write to the Free Software
  64. .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  65. .\"
  66. -.TH rdiff 1 "$Date: 2002/01/25 21:25:34 $"
  67. +.TH rdiff 1 "$Date: 2006/02/21 12:21:52 $"
  68. .SH NAME
  69. rdiff \- compute and apply signature-based file differences
  70. .SH SYNOPSYS
  71. @@ -29,10 +29,17 @@ rdiff \- compute and apply signature-bas
  72. .PP
  73. \fBrdiff\fP [\fIoptions\fP] \fBpatch\fP \fIbasis-file delta-file new-file\fP
  74. .fi
  75. +.SH USAGE
  76. +You can use \fBrdiff\fP to update files, much like \fBrsync\fP does.
  77. +However, unlike \fBrsync\fP, \fBrdiff\fP puts you in control. There
  78. +are three steps to updating a file: \fBsignature\fP, \fBdelta\fP, and
  79. +\fBpatch\fP.
  80. .SH DESCRIPTION
  81. In every case where a filename must be specified, \- may be used
  82. instead to mean either standard input or standard output as
  83. -appropriate.
  84. +appropriate. Be aware that if you do this, you'll need to terminate your
  85. +\fIoptions\fP with \-\- or \fBrdiff\fP will think you are passing it
  86. +an empty option.
  87. .SH "RETURN VALUE"
  88. 0 for successful completion, 1 for environmental problems (file not
  89. found, invalid options, IO error, etc), 2 for a corrupt file and 3 for