]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: don't truncate when creating a new file
authorDarrick J. Wong <djwong@kernel.org>
Sun, 6 Jul 2025 18:32:03 +0000 (11:32 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 31 Jul 2025 14:36:15 +0000 (10:36 -0400)
commite3a1437758398e8adcd141aabb7c572af8ef356a
tree1abdb410c7248b3e7cff5fe194257d1179934667
parent33880eea11b71ec6f7ef80c5f4911464d5de2edb
fuse2fs: don't truncate when creating a new file

New files can't have contents, so there's no need to truncate them,
which then messes with ctime/mtime.

Cc: linux-ext4@vger.kernel.org # v1.43
Fixes: 81cbf1ef4f5dab ("misc: add fuse2fs, a FUSE server for e2fsprogs")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/175182663059.1984706.11656403223439904537.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c