Re: [PATCH 0/5] fallocate system call
From: Chris Wedgwood
Date: Mon Apr 30 2007 - 02:01:47 EST
On Mon, Apr 30, 2007 at 03:56:32PM +1000, David Chinner wrote:
> On Sun, Apr 29, 2007 at 10:25:59PM -0700, Chris Wedgwood wrote:
> IIRC, the argument for FA_ALLOCATE changing file size is that
> posix_fallocate() is supposed to change the file size.
But it's not posix_fallocate; it's something more generic. glibc can
do posix_fallocate using truncate + fallocate.
> Note that the way XFS implements growing the file size after the
> allocation is via a truncate....
What's wrong with that? That seems very reasonable.
> That's would what I did because otherwise you'd use ftruncate64().
> Without documented behaviour or an ext4 implementation, I have to
> ask what it's supposed to do, though ;)
How many *real* users are there for ext4? Why does 'what ext4 does'
define 'the semantics'?
Surely semantics should be decided either by precedent (if there is an
existing relevant userbase) or sensible thought and some debate?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/