public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* e2fsprogs and blocks outside i_size
@ 2008-07-18 12:11 Aneesh Kumar K.V
  2008-07-18 12:37 ` Theodore Tso
  0 siblings, 1 reply; 6+ messages in thread
From: Aneesh Kumar K.V @ 2008-07-18 12:11 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: linux-ext4

Hi Ted,

With fallocate FALLOC_FL_KEEP_SIZE option, when we write to prealloc
space and if we hit ENOSPC when trying to insert the extent,
we actually zero out the extent. That means we can have blocks
outside i_size for an inode. I guess e2fsck currently doesn't
handle this. Or should we fix kernel to update i_size to the
right value if we do a zero out of the extent ?

With fallocate if the prealloc area is small we also aggressively zeroout.
This was needed so that a random write pattern on falloc area doesn't
results in too many extents.  That also can result in the above
error on fsck.

-aneesh

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-21 23:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 12:11 e2fsprogs and blocks outside i_size Aneesh Kumar K.V
2008-07-18 12:37 ` Theodore Tso
2008-07-21  5:08   ` Andreas Dilger
2008-07-21  5:59     ` Aneesh Kumar K.V
2008-07-21 12:34       ` Theodore Tso
2008-07-21 23:32         ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox