Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for disabling VFS caching #86

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

chenxiaolong
Copy link
Owner

VFS caching can now be configured per-remote. Disabling it is equivalent to rclone mount --vfs-cache-mode none. This will disable support for random writes and prevent failed uploads from being retried. However, it allows uploads to begin immediately and allows the client to show more accurate file write progress.

If a remote type does not support streaming, VFS caching will be force enabled and the UI option will be grayed out. This is preferable to allowing the user to set a broken configuration and not knowing until they try to create a file and having it fail.

Internally, RSAF now maintains two sets of VFS instances. One set with caching VFSs and another set with streaming VFSs. This allows the caching option to be toggled immediately without waiting for open files to be closed (and fully uploaded). The downside is that if the user toggles the option while uploads are occurring, the directory listings may be inconsistent until the uploads complete.

Issue: #79

VFS caching can now be configured per-remote. Disabling it is equivalent
to `rclone mount --vfs-cache-mode none`. This will disable support for
random writes and prevent failed uploads from being retried. However, it
allows uploads to begin immediately and allows the client to show more
accurate file write progress.

If a remote type does not support streaming, VFS caching will be force
enabled and the UI option will be grayed out. This is preferable to
allowing the user to set a broken configuration and not knowing until
they try to create a file and having it fail.

Internally, RSAF now maintains two sets of VFS instances. One set with
caching VFSs and another set with streaming VFSs. This allows the
caching option to be toggled immediately without waiting for open files
to be closed (and fully uploaded). The downside is that if the user
toggles the option while uploads are occurring, the directory listings
may be inconsistent until the uploads complete.

Issue: #79

Signed-off-by: Andrew Gunnerson <[email protected]>
chenxiaolong added a commit that referenced this pull request Oct 24, 2024
Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong merged commit 6fc6b98 into master Oct 24, 2024
1 check passed
@chenxiaolong chenxiaolong deleted the disable-caching branch October 24, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant