Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfs: Ignore ECLOSED in Setattr when truncating file handles
Before this change file handles could get closed while the truncate the file handles loop was running. This would mean that ocassionally an ECLOSED (which is translated into EBADF by cmd/mount) would spuriously be returned if Release happened to happen in the middle of a Truncate call (Setattr called with size=0). This change ignores the ECLOSED while truncating file handles. See: https://forum.rclone.org/t/writes-to-wasabi-mount-failing-with-bad-file-descriptor-intermittently/26321
- Loading branch information