Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: remove misleading comment

Nick Craig-Wood60945d0a3793
diff --git a/vfs/read.go b/vfs/read.go
index bd0b68cf0..80d2d777c 100644
--- a/vfs/read.go
+++ b/vfs/read.go
@@ -214,9 +214,6 @@ func (fh *ReadFileHandle) readAt(p []byte, off int64) (n int, err error) {
if reqSize > 0 {
fh.readCalled = true
}
- // One exception to the above is if we fail to fully populate a
- // page cache page; a read into page cache is always page aligned.
- // Make sure we never serve a partial read, to avoid that.
n, err = io.ReadFull(fh.r, p)
newOffset = fh.offset + int64(n)
// if err == nil && rand.Intn(10) == 0 {