rclone/vfs
Nick Craig-Wood 0902e5c48e 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
2021-09-28 11:51:41 +01:00
..
test_vfs lib/random: unify random string generation into random.String 2019-08-06 12:44:08 +01:00
vfscache vfs: ensure names used in cache path are legal on current os 2021-08-19 20:14:50 +02:00
vfscommon Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
vfsflags build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
vfstest build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
dir.go vfs: fix Create causing windows explorer to truncate files on CTRL-C CTRL-V 2021-03-31 14:48:02 +01:00
dir_handle.go Spelling fixes 2020-10-14 15:21:31 +01:00
dir_handle_test.go vfs: add --vfs-writeback option to delay writes back to cloud storage 2020-06-30 12:01:36 +01:00
dir_test.go vfs: fix Create causing windows explorer to truncate files on CTRL-C CTRL-V 2021-03-31 14:48:02 +01:00
errors.go build: drop support for go1.8 2019-04-15 21:49:58 +01:00
errors_test.go vfs: add tests and subsequent fixes 2017-11-04 10:24:10 +00:00
file.go vfs: Ignore ECLOSED in Setattr when truncating file handles 2021-09-28 11:51:41 +01:00
file_test.go vfs: fix modtime set if --vfs-cache-mode writes/full and no write 2021-03-16 13:36:48 +00:00
help.go docs/vfs: Merge duplicate chunked reading documentation from mount docs 2021-08-19 19:29:41 +02:00
make_open_tests.go build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
open_test.go vfs: bring DO NOT EDIT comments in line with "go help generate" 2020-04-30 12:24:44 +01:00
rc.go vfs: fix vfs/refresh calls with fs= parameter 2020-11-07 14:26:33 +00:00
rc_test.go vfs: fix vfs/refresh calls with fs= parameter 2020-11-07 14:26:33 +00:00
read.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
read_test.go vfs: add --vfs-writeback option to delay writes back to cloud storage 2020-06-30 12:01:36 +01:00
read_write.go vfs: fix modtime set if --vfs-cache-mode writes/full and no write 2021-03-16 13:36:48 +00:00
read_write_test.go vfs: Make tests run reliably 2020-06-30 12:01:36 +01:00
vfs.go vfs: do not print notice about missing poll-interval support when set to 0 2021-05-28 13:09:15 +02:00
vfs_case_test.go vfs: add --vfs-writeback option to delay writes back to cloud storage 2020-06-30 12:01:36 +01:00
vfs_test.go Spelling fixes 2020-10-14 15:21:31 +01:00
vfstest_test.go mount: change interface of mount commands to take mount options 2020-07-24 10:48:51 +01:00
vstate_string.go vfs: fix virtual entries causing deleted files to still appear 2020-11-10 16:47:25 +00:00
write.go docs: spelling: etc. 2020-10-28 18:16:23 +00:00
write_test.go vfs: add --vfs-writeback option to delay writes back to cloud storage 2020-06-30 12:01:36 +01:00