"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
cmount: use -o atomic_o_trunc to make sure O_TRUNC is supplied to Open()
Nick Craig-Wood60cdcf784cb7
diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.goindex 8c482b53a..647ea33a5 100644--- a/cmd/cmount/mount.go+++ b/cmd/cmount/mount.go@@ -40,6 +40,11 @@ func mountOptions(device string, mountpoint string) (options []string) {"-o", "fsname=" + device,"-o", "subtype=rclone","-o", fmt.Sprintf("max_readahead=%d", mountlib.MaxReadAhead),+ // This causes FUSE to supply O_TRUNC with the Open+ // call which is more efficient for cmount. However+ // it does not work with cgofuse on Windows with+ // WinFSP so cmount must work with or without it.+ "-o", "atomic_o_trunc",}if mountlib.DebugFUSE {options = append(options, "-o", "debug")