Re: O_TRUNC problem on a full filesystem

Stephen C. Tweedie (sct@redhat.com)
Thu, 24 May 2001 12:16:34 +0100


On Wed, May 23, 2001 at 07:55:48PM +1000, Andrew Morton wrote:

> When you truncated your file, the blocks remained preallocated
> on behalf of the file, and were hence considered "used". For
> some reason, a subsequent attempt to allocate blocks for the
> same file failed to use that file's preallocated blocks.

Nope. ext2_truncate() calls ext2_discard_prealloc() to fix this up.
Both 2.2 and 2.4 do this correctly.

Cheers,
Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/