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: disable mount for freebsd

Nick Craig-Woodaf8ba185806b
diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.go
index 9649b1be6..f6d86bdb5 100644
--- a/cmd/cmount/mount.go
+++ b/cmd/cmount/mount.go
@@ -25,7 +25,7 @@ import (
func init() {
name := "cmount"
- cmountOnly := ProvidedBy(runtime.GOOS)
+ cmountOnly := runtime.GOOS != "linux" // rclone mount only works for linux
if cmountOnly {
name = "mount"
}
diff --git a/cmd/mount/dir.go b/cmd/mount/dir.go
index 775edd4e6..4a6f939f6 100644
--- a/cmd/mount/dir.go
+++ b/cmd/mount/dir.go
@@ -1,5 +1,5 @@
-//go:build linux || freebsd
-// +build linux freebsd
+//go:build linux
+// +build linux
package mount
diff --git a/cmd/mount/file.go b/cmd/mount/file.go
index 1a0ad6c28..f745dcc7b 100644
--- a/cmd/mount/file.go
+++ b/cmd/mount/file.go
@@ -1,5 +1,5 @@
-//go:build linux || freebsd
-// +build linux freebsd
+//go:build linux
+// +build linux
package mount
diff --git a/cmd/mount/fs.go b/cmd/mount/fs.go
index ee5897e92..e81b2f078 100644
--- a/cmd/mount/fs.go
+++ b/cmd/mount/fs.go
@@ -1,7 +1,7 @@
// FUSE main Fs
-//go:build linux || freebsd
-// +build linux freebsd
+//go:build linux
+// +build linux
package mount
diff --git a/cmd/mount/handle.go b/cmd/mount/handle.go
index c3293acc3..65d344538 100644
--- a/cmd/mount/handle.go
+++ b/cmd/mount/handle.go
@@ -1,5 +1,5 @@
-//go:build linux || freebsd
-// +build linux freebsd
+//go:build linux
+// +build linux
package mount
diff --git a/cmd/mount/mount.go b/cmd/mount/mount.go
index 9be432c5e..b32ba29ae 100644
--- a/cmd/mount/mount.go
+++ b/cmd/mount/mount.go
@@ -1,5 +1,5 @@
-//go:build linux || freebsd
-// +build linux freebsd
+//go:build linux
+// +build linux
// Package mount implements a FUSE mounting system for rclone remotes.
package mount
diff --git a/cmd/mount/mount_test.go b/cmd/mount/mount_test.go
index 4e1d832a9..df4d02ec0 100644
--- a/cmd/mount/mount_test.go
+++ b/cmd/mount/mount_test.go
@@ -1,5 +1,5 @@
-//go:build linux || freebsd
-// +build linux freebsd
+//go:build linux
+// +build linux
package mount
diff --git a/cmd/mount/mount_unsupported.go b/cmd/mount/mount_unsupported.go
index 84f8656dc..c2feafbc3 100644
--- a/cmd/mount/mount_unsupported.go
+++ b/cmd/mount/mount_unsupported.go
@@ -1,10 +1,8 @@
-//go:build !linux && !freebsd
-// +build !linux,!freebsd
+//go:build !linux
+// +build !linux
// Package mount implements a FUSE mounting system for rclone remotes.
//
// Build for mount for unsupported platforms to stop go complaining
// about "no buildable Go source files".
-//
-// Invert the build constraint: linux freebsd
package mount