hashproduct+rsync at gmail.com
Sat Aug 26 00:15:24 GMT 2006
On 8/25/06, Rob Bosch <robbosch at msn.com> wrote:
> This article suggests the ftruncate function is in the cygwin system
> (http://www.cygwin.com/ml/cygwin-cvs/2006-q3/msg00114.html). Based on the
> open base specifications the ftruncate should allow the file to be resized
> to the desired level achieving what we want after the file is created?
I took a look at the change to fhandler_disk_file.cc.diff linked from
that message and found that posix_fallocate is the function we want.
Cygwin correctly implements it using SetEndOfFile. So rsync's
configure script should check for posix_fallocate, and the receiver
should call it just after opening each received file. I might write a
patch for this.
More information about the rsync