1
mirror of https://github.com/rclone/rclone synced 2024-11-30 09:10:05 +01:00
rclone/vfs/vfscache
Leo Luan ff0280c0cb vfs: Fix missed concurrency control between some item operations and reset
Item reset is invoked by cache cleaner for synchronous recovery
from ENOSPC errors. The reset operation removes the cache file and
closes/reopens the downloaders.  Although most parts of reset and
other item operations are done with the item mutex held, the mutex
is released during fd.WriteAt and downloaders calls. We used preAccess
and postAccess calls to serialize Reset, ReadAt, and Open, but missed
some other item operations. The patch adds preAccess/postAccess
calls in Sync, Truncate, Close, WriteAt, and rename.
2020-10-06 16:35:23 +01:00
..
downloaders vfs: Fix a deadlock vulnerability in downloaders.Close 2020-10-06 16:35:23 +01:00
writeback vfs cache: make logging consistent and remove some debug logging 2020-07-06 17:32:53 +01:00
cache_test.go vfs: support synchronous cache space recovery upon ENOSPC 2020-08-25 21:12:06 +01:00
cache.go vfs: Fix a race condition in retryFailedResets 2020-10-06 16:35:23 +01:00
item_test.go vfs: Add recovered items on cache reload to directory listings 2020-06-30 12:03:39 +01:00
item.go vfs: Fix missed concurrency control between some item operations and reset 2020-10-06 16:35:23 +01:00