]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: fix punching post-EOF blocks during truncate
authorDarrick J. Wong <djwong@kernel.org>
Sat, 26 Jul 2025 16:28:48 +0000 (09:28 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 31 Jul 2025 14:46:02 +0000 (10:46 -0400)
commit86a24ae12c4fb81ec0b27ae1b63d3e5b05c7d46f
tree8959d503a0ba226d4a8c5af398fe7684702d0f4c
parentbed461d69f4c14b35f86ff25bad220ba3c5d500e
fuse2fs: fix punching post-EOF blocks during truncate

ext2fs_punch() can update the inode that's passed in, so we need to
write it back.  This should fix some fstests failures where the test
file system ends up with inodes where all extent records fit within the
inode but inexplicably have extents beyond EOF.  While we're at it, add
the fuse2fs prefix to the two helper functions.

Cc: linux-ext4@vger.kernel.org # v1.47.3
Fixes: 4581ac60eb53ec ("fuse2fs: fix post-EOF preallocation clearing on truncation")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20250726162848.GQ2672022@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c