You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the forum and the existing issues for this problem.
I have tested with the latest beta or stable release and can still reproduce the problem.
This is a reproducible bug, not a usage question (questions belong on the forum).
Associated forum post URL
No response
What is the problem you are having with rclone?
rclone rc vfs/forget is meant to make an rclone mount pick up a file that changed on the remote,
but it only refreshes rclone's own cache — not the kernel's. So a read can come back truncated to the
file's old size for up to --attr-timeout.
How to reproduce
rclone mount a remote with --attr-timeout 60s.
Read a file through the mount — the kernel caches its size for 60s.
Change that file on the remote so it grows (another client, or a WebDAV backend whose store is edited).
Call rclone rc vfs/forget file=....
Read the file again any time in the next 60s: it's truncated to the old
size. vfs/forget made no difference; only the timeout expiring eventually
heals it. This is because the kernel answers getattr from its own cache.
Before you start
Associated forum post URL
No response
What is the problem you are having with rclone?
rclone rc vfs/forgetis meant to make anrclone mountpick up a file that changed on the remote,but it only refreshes rclone's own cache — not the kernel's. So a read can come back truncated to the
file's old size for up to
--attr-timeout.How to reproduce
rclone mounta remote with--attr-timeout 60s.rclone rc vfs/forget file=....size.
vfs/forgetmade no difference; only the timeout expiring eventuallyheals it. This is because the kernel answers
getattrfrom its own cache.Repro script: https://gist.github.com/thomasjm/a76fabd691911437874e155d12bd1cdd
rclone version
rclone v1.75.0-DEV
Operating system
Linux
Which cloud storage system are you using?
Local WebDAV serve
Output of
rclone config redactedThe command you were trying to run
A log from the command with the
-vvflagAnything else?
I have a proposed fix here, which I'd be happy to open as a PR:
https://github.com/thomasjm/rclone/tree/vfs-forget-invalidate-kernel-cache