OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 02-Jan-2005 17:35:01
Branch: HEAD Handle: 2005010216350000
Modified files:
openpkg-src/rsync rsync.patch
Log:
apply --bwlimit fix for daemon mode (taken over from Debian)
Summary:
Revision Changes Path
1.14 +29 -0 openpkg-src/rsync/rsync.patch
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/rsync/rsync.patch
============================================================================
$ cvs diff -u -r1.13 -r1.14 rsync.patch
--- openpkg-src/rsync/rsync.patch 2 Jan 2005 16:15:06 -0000 1.13
+++ openpkg-src/rsync/rsync.patch 2 Jan 2005 16:35:00 -0000 1.14
@@ -56,3 +56,32 @@
while (c->len)
{
NEEDOUT
+Index: options.c
+--- options.c.orig 2004-09-23 19:39:05 +0200
++++ options.c 2005-01-02 17:30:40 +0100
+@@ -769,6 +769,12 @@
+ }
+ }
+
++ if (bwlimit) {
++ bwlimit_writemax = (size_t)bwlimit * 128;
++ if (bwlimit_writemax < 512)
++ bwlimit_writemax = 512;
++ }
++
+ if (daemon_opt) {
+ daemon_opt = 0;
+ am_daemon = 1;
+@@ -807,12 +813,6 @@
+ if (do_progress && !verbose)
+ verbose = 1;
+
+- if (bwlimit) {
+- bwlimit_writemax = (size_t)bwlimit * 128;
+- if (bwlimit_writemax < 512)
+- bwlimit_writemax = 512;
+- }
+-
+ if (inplace) {
+ #if HAVE_FTRUNCATE
+ if (partial_dir) {
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]