mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
vfs: implement partial reads in --vfs-cache-mode full
This allows reads to only read part of the file and it keeps on disk a cache of what parts of each file have been loaded. File data itself is kept in sparse files.
This commit is contained in:
@@ -189,8 +189,7 @@ func (fh *WriteFileHandle) close() (err error) {
|
||||
fh.closed = true
|
||||
// leave writer open until file is transferred
|
||||
defer func() {
|
||||
fh.file.delWriter(fh, false)
|
||||
fh.file.finishWriterClose()
|
||||
fh.file.delWriter(fh)
|
||||
}()
|
||||
// If file not opened and not safe to truncate then leave file intact
|
||||
if !fh.opened && !fh.safeToTruncate() {
|
||||
|
||||
Reference in New Issue
Block a user