Whamcloud - gitweb
e2fsck: handle verity files in scan_extent_node()
authorEric Biggers <ebiggers@google.com>
Thu, 23 May 2019 15:30:33 +0000 (08:30 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 27 May 2019 19:10:31 +0000 (15:10 -0400)
commit43466d03968939e67272bf1e5962e01042d0fff6
tree46e9735a0f17099a4901a16ff4b5d34501e6e3fc
parent188bf39acf5da14d291e4dde481baf02abe84c62
e2fsck: handle verity files in scan_extent_node()

Don't report PR_1_EXTENT_END_OUT_OF_BOUNDS on verity files during
scan_extent_node(), since they will have blocks stored past i_size.

This was missed during the earlier fix because this check only triggers
if the inode has enough extents to need at least one extent index node.

This bug is causing one of the fs-verity xfstests to fail with the
reworked fs-verity patchset.

Fixes: 3baafde6a8ae ("e2fsck: allow verity files to have initialized blocks past i_size")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c