[lkml]   [2001]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: O_TRUNC problem on a full filesystem
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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:53    [W:0.103 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site