Thread (283 messages) 283 messages, 37 authors, 2007-07-12

Re: [PATCH 0/5] fallocate system call

From: Andreas Dilger <hidden>
Date: 2007-05-03 10:34:27
Also in: linux-fsdevel, linux-xfs, lkml

On May 02, 2007  18:23 +0530, Amit K. Arora wrote:
On Sun, Apr 29, 2007 at 10:25:59PM -0700, Chris Wedgwood wrote:
quoted
On Mon, Apr 30, 2007 at 10:47:02AM +1000, David Chinner wrote:
quoted
For FA_ALLOCATE, it's supposed to change the file size if we
allocate past EOF, right?
I would argue no.  Use truncate for that.
The patch I posted for ext4 *does* change the filesize after
preallocation, if required (i.e. when preallocation is after EOF).
I may have to change that, if we decide on not doing this.
I think I'd agree - it may be useful to allow preallocation beyond EOF
for some kinds of applications (e.g. PVR preallocating live TV in 10
minute segments or something, but not knowing in advance how long the
show will actually be recorded or the final encoded size).

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help