On Sun, Feb 7, 2010 at 6:11 PM, Theo de Raadt <dera...@cvs.openbsd.org>
wrote:
> And in mv, for the cross-device case?  I see others that do fast
> reads, like sum.  diff?  cmp?  grep?  How many others?  If cp(1)
> is such a common operation (I bet it isn't), how soon before other
> programs doing exactly the same thing want the same chunk of code?

If mv has different file copying code than cp, that's a bug that can be
fixed...

How many *writes* does sum do?  It doesn't need a large buffer because
it's not moving the disk heads to two different locations.

I don't know how cmp works, but diff reads both *entire* files into
memory before processing, so that's not a good example of how to do
things.

Reply via email to