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

Re: [RFC] Heads up on sys_fallocate()

From: Jörn Engel <joern@lazybastard.org>
Date: 2007-03-05 15:37:26
Also in: linux-fsdevel, lkml

On Mon, 5 March 2007 07:08:03 -0800, Ulrich Drepper wrote:
Jörn Engel wrote:
quoted
Does the allocation have to be persistent beyond lifetime of the file
descriptor?
Of course.  You call posix_fallocate once for the lifetime of the file
when it is created to ensure that all future uses will work.
That part is not quite clear from the manpage but I trust most people
would assume the same.
It seems your filesystem will not be able to support this unless
compression is turned off.
Correct.  Compression needs to be turned off for a file, if
posix_fallocate(3) is to succeed.  What I could do is disable
compression (meaning that no data written in the future will be
compressed) and rewrite all blocks within the given range.

Still, it is quite obvious that noone designing this interface has lost
much thought to compressing filesystems.  Whatever I can come up with
will either be incompatible or some sort of hack.  :(

Jörn

-- 
Courage is not the absence of fear, but rather the judgement that
something else is more important than fear.
-- Ambrose Redmoon
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help