[lkml]   [2003]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: posix_fallocate question again
Andrew Morton writes:
> "Chen, Kenneth W" <> wrote:
> >
> > This has been brought up by Ulrich more than 3 years ago:
> >
> A decent fallocate() implementation requires that the underlying fs has a
> permanent representation of blocks which are in an "allocated,
> uninitialised" state. afaik XFS is the only such filesystem.
> It's a fair bit of work for what doesn't really sound a very useful
> feature. Doing it in libc is reasonable. Probably the libc implementation
> could be improved by using ioctl(FIBMAP) and O_DIRECT to mimimise IO and
> CPU utilisation.

fallocate() will be useful when writing into file through
mmap(). Currently kernel can just drop dirtied page at any moment (if
->writepage() fails with -ENOSPC), so the only safe way to modify file
through mmap() is by using mlock().

> > Is there anytime soon that kernel 2.6 will have such functionality?
> Nope.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.070 / U:6.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site