Whamcloud - gitweb
e2fsck: don't report uninit extents past EOF invalid
authorEric Whitney <enwlinux@gmail.com>
Mon, 9 Sep 2013 14:53:03 +0000 (10:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Sep 2013 14:53:06 +0000 (10:53 -0400)
commit085757fcc22a86168ee6793dfad9a95d88fb09db
treebe008f6c59fbedcbd7ba61674c364813fbe22d0b
parent8ab395524b95875818505a497428cab73e80c0d5
e2fsck: don't report uninit extents past EOF invalid

Commit d3f32c2db8 introduced a regression that caused e2fsck failures
in xfstests generic 013, 070, 083, 091, and 263.  Uninitialized
extents created by fallocate() at the end of file with the
FALLOC_FL_KEEP_SIZE flag were identified as invalid.  However,
because the file size is not increased when FALLOC_FL_KEEP_SIZE is
used, uninitialized extents can correctly contain blocks located past
the end of file.

Fix this by filtering out possible invalid extents if they are
uninitialized and extend past the block containing the end of file.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c