Whamcloud - gitweb
fuse2fs: fix return value handling
authorDarrick J. Wong <djwong@kernel.org>
Wed, 21 May 2025 22:41:11 +0000 (15:41 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 May 2025 13:41:20 +0000 (09:41 -0400)
commitf23be676388c3e8afacdf6703755f1b5bda96a47
treec70762fd870c0213623a9e61243de7b502fdd928
parent010a73cdeb5719ac80845a142bee77ee790304a2
fuse2fs: fix return value handling

For the xattr functions, don't obliterate the return value of the file
system operation with an error code coming from ext2fs_xattrs_close
failing.  Granted, it doesn't ever fail (right now!) so this is mostly
just preening.

Also fix the obsolete op_truncate not to squash error returns.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174786677978.1383760.8801097477278077188.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c