"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: add --no-seek flag to disable seeking
Nick Craig-Woodf45b3c87bfd7
diff --git a/cmd/mount/file.go b/cmd/mount/file.goindex 343783b2d..965f15a74 100644--- a/cmd/mount/file.go+++ b/cmd/mount/file.go@@ -114,6 +114,9 @@ func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenRswitch {case req.Flags.IsReadOnly():+ if noSeek {+ resp.Flags |= fuse.OpenNonSeekable+ }return newReadFileHandle(o)case req.Flags.IsWriteOnly():resp.Flags |= fuse.OpenNonSeekablediff --git a/cmd/mount/mount.go b/cmd/mount/mount.goindex afed31715..737c68d42 100644--- a/cmd/mount/mount.go+++ b/cmd/mount/mount.go@@ -20,6 +20,7 @@ import (var (noModTime = falsedebugFUSE = false+ noSeek = false// mount optionsreadOnly = falseallowNonEmpty = false@@ -43,6 +44,7 @@ func init() {cmd.Root.AddCommand(mountCmd)mountCmd.Flags().BoolVarP(&noModTime, "no-modtime", "", noModTime, "Don't read the modification time (can speed things up).")mountCmd.Flags().BoolVarP(&debugFUSE, "debug-fuse", "", debugFUSE, "Debug the FUSE internals - needs -v.")+ mountCmd.Flags().BoolVarP(&noSeek, "no-seek", "", noSeek, "Don't allow seeking in files.")// mount optionsmountCmd.Flags().BoolVarP(&readOnly, "read-only", "", readOnly, "Mount read-only.")mountCmd.Flags().BoolVarP(&allowNonEmpty, "allow-non-empty", "", allowNonEmpty, "Allow mounting over a non-empty directory.")