Hello Alex.
From your readme file:
Code:
dd utility copies part of file slowly when bs < 512.
partcp performs this task faster by using bigger memory blocks.
I assume small block sizes are bad because the hd head is then always moving between source file and target file back and forth.
This problem is then solved by setting in dd bs to a high value. Then dd and partcp should perform equally. What do you think?
A suggestion. To complete your project,
- add a Makefile or configure script
- add a testcase (say, provide a sourcefile and target file and have a make target that is calling partcp to generate the target file and then "diff" the generated target file with the provided target file).