rclone/vfs
Nick Craig-Wood 077b45322d vfs: fix --vfs-cache-mode minimal,writes ignoring cached files
Before this change, with --vfs-cache-mode minimal,writes if files were
opened they would always be read from the remote, regardless of
whether they were in the cache or not.

This change checks to see if the file is in the cache when opening a
file with --vfs-cache-mode >= minimal and if so then it uses it from
the cache.

This makes --vfs-cache-mode writes in particular much more
efficient. No longer is a file uploaded (with write mode) then
immediately downloaded (with read only mode).

Fixes #3330
2019-08-23 13:58:15 +01:00
..
test_vfs lib/random: unify random string generation into random.String 2019-08-06 12:44:08 +01:00
vfsflags build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
cache.go vfs: fix --vfs-cache-mode minimal,writes ignoring cached files 2019-08-23 13:58:15 +01:00
cache_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
dir.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
dir_handle.go vfs: factor duplicated Open code into vfs from mount/cmount 2017-11-03 13:00:00 +00:00
dir_handle_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
dir_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
errors.go build: drop support for go1.8 2019-04-15 21:49:58 +01:00
errors_test.go vfs: add tests and subsequent fixes 2017-11-04 10:24:10 +00:00
file.go vfs: fix --vfs-cache-mode minimal,writes ignoring cached files 2019-08-23 13:58:15 +01:00
file_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
help.go vfs: implement --vfs-cache-max-size to limit the total size of the cache 2019-02-02 12:30:10 +00:00
make_open_tests.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
open_test.go vfs: Make OpenFile and friends return EINVAL if O_RDONLY and O_TRUNC 2018-02-26 17:04:27 +00:00
rc.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
read.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
read_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
read_write.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
read_write_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
vfs.go vfs: add Fs() method to return underlying fs.Fs 2019-08-06 11:43:42 +01:00
vfs_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
write.go vfs: make write without cache more efficient 2019-08-08 12:37:50 +01:00
write_test.go azureblob/b2/dropbox/gcs/koofr/qingstor/s3: fix 0 length files 2019-08-06 15:18:08 +01:00