rclone/vfs
Brett Dutro 7d0d7e66ca vfs: move writeback of dirty data out of close() method into its own method (FlushWrites) and remove close() call from Flush()
If a file handle is duplicated with dup() and the duplicate handle is
flushed, rclone will go ahead and close the file, making the original
file handle stale. This change removes the close() call from Flush() and
replaces it with FlushWrites() so that the file only gets closed when
Release() is called. The new FlushWrites method takes care of actually
writing the file back to the underlying storage.

Fixes #3381
2019-10-09 10:07:29 +01:00
..
test_vfs lib/random: unify random string generation into random.String 2019-08-06 12:44:08 +01:00
vfsflags vfs: add flag --vfs-case-insensitive for windows/macOS mounts 2019-09-04 21:30:48 +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 vfs: add flag --vfs-case-insensitive for windows/macOS mounts 2019-09-04 21:30:48 +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 vfs: make objects of unknown size readable through the VFS 2019-09-14 13:09:07 +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 vfs: make objects of unknown size readable through the VFS 2019-09-14 13:09:07 +01:00
read_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
read_write.go vfs: move writeback of dirty data out of close() method into its own method (FlushWrites) and remove close() call from Flush() 2019-10-09 10:07:29 +01:00
read_write_test.go vfs: move writeback of dirty data out of close() method into its own method (FlushWrites) and remove close() call from Flush() 2019-10-09 10:07:29 +01:00
vfs.go vfs: move writeback of dirty data out of close() method into its own method (FlushWrites) and remove close() call from Flush() 2019-10-09 10:07:29 +01:00
vfs_case_test.go vfs: skip TestCaseSensitivity on case insensitive backends 2019-09-06 10:44:59 +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