cvs commit: src/bin/cpdup Makefile cpdup.1 cpdup.c cpdup.h hclink.c hclink.h hcproto.c hcproto.h misc.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Apr 10 15:11:18 PDT 2008
dillon 2008/04/10 15:09:09 PDT
DragonFly src repository
Modified files:
bin/cpdup Makefile cpdup.1 cpdup.c cpdup.h hclink.c
hclink.h hcproto.c hcproto.h misc.c
Log:
Add parallel transaction support for remote source or target specifications.
The implementation is a bit crude because I don't want to take too many
chances on a codebase that wasn't originally designed to be multi-threaded,
so the master mutex is only released when a thread is waiting for input
on a socket.
* Add the -p<threads> option and compile -pthread by default. This is only
useful when the source and/or destination is a remote host. Note that
parallel transaction mode will not work with older cpdup binaries on the
remote end.
This greatly improves cpdup's performance when operating on a remote
source and/or target.
* Add -l to force stdout and stderr to be line-buffered.
Revision Changes Path
1.7 +4 -0 src/bin/cpdup/Makefile
1.28 +7 -0 src/bin/cpdup/cpdup.1
1.20 +148 -31 src/bin/cpdup/cpdup.c
1.7 +6 -0 src/bin/cpdup/cpdup.h
1.5 +199 -69 src/bin/cpdup/hclink.c
1.2 +40 -16 src/bin/cpdup/hclink.h
1.2 +198 -178 src/bin/cpdup/hcproto.c
1.2 +1 -0 src/bin/cpdup/hcproto.h
1.11 +4 -1 src/bin/cpdup/misc.c
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/Makefile.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/cpdup.1.diff?r1=1.27&r2=1.28&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/cpdup.c.diff?r1=1.19&r2=1.20&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/cpdup.h.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/hclink.c.diff?r1=1.4&r2=1.5&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/hclink.h.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/hcproto.c.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/hcproto.h.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/bin/cpdup/misc.c.diff?r1=1.10&r2=1.11&f=u
More information about the Commits
mailing list