rclone/cmd
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
..
about docs: update rclone about docs 2020-11-27 14:08:52 +00:00
all cmd: rclone selfupdate (#5080) 2021-03-11 22:39:30 +03:00
authorize config: remove log.Fatal and replace with error passing where possible 2021-03-14 16:03:35 +00:00
backend fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
cachestats build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
cat docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
check docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
cleanup docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
cmount cmount: fix unicode issues with accented characters on macOS 2021-02-11 15:13:19 +00:00
config fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
copy docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
copyto docs: Add full stops for consistency in rclone --help 2020-09-08 16:26:09 +01:00
copyurl copyurl: add option to print resulting auto-filename (#5095) 2021-03-18 10:04:59 +01:00
cryptcheck check,cryptcheck: add reporting of filenames for same/missing/changed #3264 2020-07-21 22:08:13 +01:00
cryptdecode cryptdecode: fix formatting 2021-01-21 10:39:51 +00:00
dbhashsum Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
dedupe docs: Updated sync and dedupe command docs #4429 2021-03-13 15:01:32 +00:00
delete docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
deletefile cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
genautocomplete docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
gendocs docs: remove manually set dates and use git dates instead 2020-06-01 13:07:46 +01:00
hashsum Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
link link: Add --expire and --unlink flags 2020-06-05 14:51:05 +01:00
listremotes config: make config file system pluggable 2021-03-11 17:29:26 +00:00
ls docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
lsd fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
lsf fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
lsjson lsjson: fix unterminated JSON in the presence of errors 2021-02-02 17:46:56 +00:00
lsl cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
md5sum Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
mkdir mkdir: warn when using mkdir on remotes which can't have empty directories 2020-07-08 17:55:58 +01:00
mount mount: fix caching of old directories after renaming them 2021-03-22 09:07:01 +00:00
mount2 docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
mountlib config: make config file system pluggable 2021-03-11 17:29:26 +00:00
move docs: fix markup of arguments #4276 2021-01-25 22:40:46 +03:00
moveto docs: promote the use of -i/--interactive and "rclone sync -i" everywhere #1574 2020-06-10 12:33:53 +01:00
ncdu ncdu: add ! (errror) and . (unreadable) file flags to go with e (empty) 2020-12-28 17:25:46 +00:00
obscure obscure: make rclone osbcure - ignore newline at end of line 2021-01-28 15:54:41 +00:00
purge docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rc rc: factor async/sync job handing into rc/jobs from rc/rcserver 2021-02-07 14:56:41 +00:00
rcat cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rcd rcd: Added systemd notification during the 'rclone rcd' command call. This also fixes #5073. 2021-03-11 17:12:14 +00:00
reveal cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
rmdir docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
rmdirs docs: update documentation of commands delete,purge,rmdir,rmdirs 2020-11-23 17:10:08 +00:00
selfupdate selfupdate: add instructions on reverting the update (#5141) 2021-03-18 23:11:16 +03:00
serve config: make config file system pluggable 2021-03-11 17:29:26 +00:00
settier cmd: fix spelling of Definition 2019-10-14 17:02:09 +01:00
sha1sum Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
size cmd: fix environment variables not setting command line flags 2019-10-14 17:02:09 +01:00
sync docs: Updated sync and dedupe command docs #4429 2021-03-13 15:01:32 +00:00
test test: add "rclone test histogram" for file name distribution stats 2021-02-13 14:24:43 +00:00
touch docs: spelling: e.g. 2020-10-28 18:16:23 +00:00
tree fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
version cmd: rclone selfupdate (#5080) 2021-03-11 22:39:30 +03:00
cmd.go cmd: refactor to use fspath.SplitFs instead of fs.ParseRemote #4996 2021-03-15 19:22:07 +00:00
help.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
progress.go Add a download flag to hashsum and related commands to force rclone to download and hash files locally 2020-12-27 15:40:44 +00:00
siginfo_darwin.go cmd: fix up stats printing on macOS after accounting change 2019-07-28 20:38:20 +01:00
siginfo_others.go cmd: add siginfo handler 2018-06-02 17:35:13 +01:00