rclone/cmd/mount
Nick Craig-Wood 4cc2a7f342 mount: fix caching of old directories after renaming them
It was discovered `rclone mount` (but not `rclone cmount`) cached
directories after rename which it shouldn't have done.

This caused IO errors when trying to access files in renamed
directories on bucket based file systems.

This turned out to be the kernel caching the directories as basil/fuse
sets their expiry time to 60s for some reason.

This fix invalidates the relevant kernel cache entries in the for the
directories which fixes the problem.

Fixes: #4977
See: https://forum.rclone.org/t/after-a-directory-renmane-using-mv-files-are-not-visible-any-longer/22797
2021-03-22 09:07:01 +00:00
..
test docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
dir.go mount: fix caching of old directories after renaming them 2021-03-22 09:07:01 +00:00
file.go build: remove go1.13 build constraints 2021-02-03 17:46:08 +00:00
fs.go mount: fix caching of old directories after renaming them 2021-03-22 09:07:01 +00:00
handle.go build: remove go1.13 build constraints 2021-02-03 17:46:08 +00:00
mount.go mount: fix caching of old directories after renaming them 2021-03-22 09:07:01 +00:00
mount_test.go build: remove go1.13 build constraints 2021-02-03 17:46:08 +00:00
mount_unsupported.go build: remove go1.13 build constraints 2021-02-03 17:46:08 +00:00