On Tue, Aug 21, 2018 at 10:59:37AM -0700, Eric Biggers wrote: > From: Eric Biggers <ebiggers@xxxxxxxxxx> > > 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@xxxxxxxxxx> Thanks, applied. We should have some tests, in e2fsprogs and/or xfstests that tests this. The work-in-progress verity 9XX xfstests don't seem to have a problem with this, probably because we weren't unmounting a file system, and then running fsck. (Since it's a scratch partition, the test harness doesn't run fsck after any of the 9XX tests.) Thanks for catching this! - Ted