forked from TrueCloudLab/rclone
vfs: fix spurious error "vfs cache: failed to _ensure cache EOF"
Before this change the error message was produced for every file which was confusing users. After this change we check for EOF and return from ReadAt at that point. See: https://forum.rclone.org/t/rclone-1-53-release/18880/10
This commit is contained in:
parent
f5abc168ed
commit
8340ff4fb9
1 changed files with 1 additions and 1 deletions
|
@ -1158,7 +1158,7 @@ func (item *Item) ReadAt(b []byte, off int64) (n int, err error) {
|
|||
item.preAccess()
|
||||
n, err = item.readAt(b, off)
|
||||
item.postAccess()
|
||||
if err == nil {
|
||||
if err == nil || err == io.EOF {
|
||||
break
|
||||
}
|
||||
fs.Errorf(item.name, "vfs cache: failed to _ensure cache %v", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue