[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070305153326.GA1469@lazybastard.org>
Date: Mon, 5 Mar 2007 16:33:27 +0100
From: Jörn Engel <joern@...ybastard.org>
To: Ulrich Drepper <drepper@...hat.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Christoph Hellwig <hch@...radead.org>,
Dave Kleikamp <shaggy@...ux.vnet.ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"Amit K. Arora" <aarora@...ux.vnet.ibm.com>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-ext4@...r.kernel.org, suparna@...ibm.com, cmm@...ibm.com,
alex@...sterfs.com, suzuki@...ibm.com
Subject: Re: [RFC] Heads up on sys_fallocate()
On Mon, 5 March 2007 07:08:03 -0800, Ulrich Drepper wrote:
> Jörn Engel wrote:
> > 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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists