forked from TrueCloudLab/rclone
mount: warn macOS users that mount implementation is changing #4393
This commit is contained in:
parent
4ac662d144
commit
3286d1992b
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@ package mount
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"bazil.org/fuse"
|
"bazil.org/fuse"
|
||||||
fusefs "bazil.org/fuse/fs"
|
fusefs "bazil.org/fuse/fs"
|
||||||
|
@ -78,6 +79,10 @@ func mountOptions(VFS *vfs.VFS, device string, opt *mountlib.Options) (options [
|
||||||
// returns an error, and an error channel for the serve process to
|
// returns an error, and an error channel for the serve process to
|
||||||
// report an error when fusermount is called.
|
// report an error when fusermount is called.
|
||||||
func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (<-chan error, func() error, error) {
|
func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (<-chan error, func() error, error) {
|
||||||
|
if runtime.GOOS == "darwin" {
|
||||||
|
fs.Logf(nil, "macOS users: please try \"rclone cmount\" as it will be the default in v1.54")
|
||||||
|
}
|
||||||
|
|
||||||
if opt.DebugFUSE {
|
if opt.DebugFUSE {
|
||||||
fuse.Debug = func(msg interface{}) {
|
fuse.Debug = func(msg interface{}) {
|
||||||
fs.Debugf("fuse", "%v", msg)
|
fs.Debugf("fuse", "%v", msg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue