Cc: Andrew Morton <akpm@...>, Amit K. Arora <aarora@...>, <linux-fsdevel@...>, <linux-kernel@...>, <linux-ext4@...>, <xfs@...>, <suparna@...>, <cmm@...>
In ext4 (as in XFS) there is a flag stored in the extent that tells if
the extent is initialized or not. Reads from uninitialized extents will
return zero-filled data, and writes that don't span the whole extent
will cause the uninitialized extent to be split into a regular extent
and one or two uninitialized extents (depending where the write is).
My comment was just that the extent doesn't have to be explicitly zero
filled on the disk, by virtue of the fact that the uninitialized flag
will cause reads to return zero.
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
-