]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: allow verity files to have initialized blocks past i_size
authorEric Biggers <ebiggers@google.com>
Tue, 21 Aug 2018 17:59:37 +0000 (10:59 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 21 Aug 2018 19:18:25 +0000 (15:18 -0400)
commit3baafde6a8ae76767990649b05abdc9036409eaf
tree8d6afdbdfb1e4f648f1913520bca1c94cd0828ca
parent76e28a1339890a33ac07eb09d2db753ef1ee7eee
e2fsck: allow verity files to have initialized blocks past i_size

Since ext4 verity is going to be an RO_COMPAT feature rather than an
INCOMPAT one, the on-disk i_size of verity inodes needs to be the data
size rather than the full size.  Consequently, verity inodes will have
initialized blocks past i_size, containing the Merkle tree and other
verity metadata.  So e2fsck must not fix the i_size of such inodes as it
normally would.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c