robbosch at msn.com
Sat Aug 26 01:30:35 GMT 2006
That would be great! If you need any help testing, let me know.
From: hashproduct at gmail.com [mailto:hashproduct at gmail.com] On Behalf Of Matt
Sent: Friday, August 25, 2006 6:15 PM
To: Rob Bosch
Subject: Re: File fragmentation
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