an interface for filesystem preallocation that doesn't suck?

Richard W.M. Jones rjones at redhat.com
Sun Apr 5 20:17:57 UTC 2009


On Thu, Apr 02, 2009 at 05:44:07PM -0500, Eric Sandeen wrote:
> James Ralston wrote:
> 
> > I intend to start filing bugs against anything I can find that doesn't
> > use fallocate(), yes.  But I needed a better implementation to suggest
> > than posix_fallocate().
> 
> Cool.  Feel free to cc: me on them?
> 
> FWIW transmission already can do it though it requires some
> undocumented(?) configuration.
> 
> It also gives you the choice of posix_fallocate(), or not.   It'd be
> nice if you could say "fallocate if you've got it; but no
> posix_fallocate, thanks"

I just wrote a new program that uses posix_fallocate to allocate large
files (of zeroes).  Should I change it to use fallocate?  What's the
recommended code snippet / autoconf configuration?

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw




More information about the devel mailing list