1
mirror of https://github.com/rclone/rclone synced 2024-12-03 13:14:37 +01:00
rclone/cmd/mountlib/mounttest
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
..
dir.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
edge_cases.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
file.go all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
fs.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_non_unix.go mountlib: fix cross platform tests 2017-05-15 16:56:46 +01:00
read_unix.go mountlib: fix cross platform tests 2017-05-15 16:56:46 +01:00
read.go Use io.SeekStart/End/Current constants now for go1.7+ #2154 2018-04-07 11:42:36 +01:00
write_non_unix.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
write_unix.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
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