cp: fix the buffer size used when writing zeros
authorPádraig Brady <P@draigBrady.com>
Mon, 31 Jan 2011 22:04:35 +0000 (22:04 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 31 Jan 2011 23:21:04 +0000 (23:21 +0000)
commit84e5274f7e6a01044d51f1cfad8b2c2c2ed5eb23
tree5a01249b21516b5b34a7f7a912acaf4f25496b34
parentf8f57dd76ba98793e131a88beb138a32d54e0aa9
cp: fix the buffer size used when writing zeros

* src/copy.c (write_zeros): This bug caused 4 or 8 bytes to
be written at a time which is very inefficient.  One could
trigger the issue with `cp --sparse=never sparse non-sparse`
on a file system that supports fiemap.
src/copy.c