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

mount: enable async reads for a 20% speedup

Nick Craig-Wood21c6babdbb0e
diff --git a/cmd/mount/mount.go b/cmd/mount/mount.go
index 117eb76da..e798e3d28 100644
--- a/cmd/mount/mount.go
+++ b/cmd/mount/mount.go
@@ -32,12 +32,10 @@ func mountOptions(device string) (options []fuse.MountOption) {
fuse.Subtype("rclone"),
fuse.FSName(device),
fuse.VolumeName(mountlib.VolumeName),
+ fuse.AsyncRead(),
// Options from benchmarking in the fuse module
//fuse.MaxReadahead(64 * 1024 * 1024),
- //fuse.AsyncRead(), - FIXME this causes
- // ReadFileHandle.Read error: read /home/files/ISOs/xubuntu-15.10-desktop-amd64.iso: bad file descriptor
- // which is probably related to errors people are having
//fuse.WritebackCache(),
}
if mountlib.NoAppleDouble {