Re: [RFC] add support for fallocate()

2010-02-13 Thread Wayne Davison
On Fri, Feb 12, 2010 at 1:08 PM, Sebastian Andrzej Siewior wrote: > fallocate() is linux specific and will preallocate the space on disk for > the entire file. > Check out the preallocate.diff in the rsync patches -- it adds an option that lets you choose to preallocate (you can browse the patch

[RFC] add support for fallocate()

2010-02-12 Thread Sebastian Andrzej Siewior
fallocate() is linux specific and will preallocate the space on disk for the entire file. FALLOC_FL_KEEP_SIZE does not change the filesize as reported by stat(). An aborted transfer will have preallocated disk space which is not "visible" via stat(). This shouldn't matter unless the user does compl