Fix multiple issues with -p<parallel>, including several data corruption
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 14 Apr 2008 05:40:51 +0000 (05:40 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 14 Apr 2008 05:40:51 +0000 (05:40 +0000)
commit975200d7553ff512a8162a976a75b6a714394a96
treeecd314140eb4f7490b30f5a4cd9727c479d23941
parenta52066b3719fc38d201685380d51fbb7137596a5
Fix multiple issues with -p<parallel>, including several data corruption
issues.

* Use malloc'd buffers instead of static buffers
* Fix memory leaks
* Fix races with hardlink tracking structures
* Fix bug in remote mknod (it wasn't creating the node on the remote host)
* Fix stack blowouts from deep recursions by starting a new thread.
* Postpend the pid for tmp file creation.
bin/cpdup/cpdup.c
bin/cpdup/cpdup.h
bin/cpdup/hclink.c
bin/cpdup/hclink.h
bin/cpdup/hcproto.c
bin/cpdup/hcproto.h
bin/cpdup/misc.c