"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
mount: update code comments
Nick Craig-Wood062616e4ddc3
diff --git a/cmd/mount/read.go b/cmd/mount/read.goindex 53befdfb5..f7232d77e 100644--- a/cmd/mount/read.go+++ b/cmd/mount/read.go@@ -40,6 +40,8 @@ var _ fusefs.Handle = (*ReadFileHandle)(nil)var _ fusefs.HandleReader = (*ReadFileHandle)(nil)// seek to a new offset+//+// Must be called with fh.mu heldfunc (fh *ReadFileHandle) seek(offset int64) error {// Can we seek it directly?if do, ok := fh.r.(io.Seeker); ok {@@ -85,11 +87,6 @@ func (fh *ReadFileHandle) Read(ctx context.Context, req *fuse.ReadRequest, respif req.Size > 0 {fh.readCalled = true}- // We don't actually enforce Offset to match where previous read- // ended. Maybe we should, but that would mean'd we need to track- // it. The kernel *should* do it for us, based on the- // fuse.OpenNonSeekable flag.- //// 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.