]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: don't write inode when inactivation fails
authorDarrick J. Wong <djwong@kernel.org>
Wed, 13 Aug 2025 18:00:49 +0000 (11:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 21 Aug 2025 00:00:54 +0000 (17:00 -0700)
commit23a04c82973bb94c20a02e565699ae47ce333038
treee9de09a8f77bff72d0fb7bb4994ac22cbf07e933
parenta441dd7b5e0a644d6bc51ac6f9d281d22162e5de
fuse2fs: don't write inode when inactivation fails

remove_inode has this weird behavior where it writes the inode to disk
even if the attempts to inactivate it (remove xattrs, truncate data)
fail.  Worse yet, it doesn't even return the original error code, so it
masks failures.  Fix this too.

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>
misc/fuse2fs.c