diff options
author | Jakob Unterwurzacher | 2017-07-10 23:33:41 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-07-10 23:33:41 +0200 |
commit | 849ec10081c0eb04535017f8845501ae799ac477 (patch) | |
tree | 5a48f238d2f2c8cce56ca4a754c4a839e147e3de /mount.go | |
parent | 9f8e19b8565ba49922aaddd3935b846feb6dc5a3 (diff) |
macos: print load_osxfuse hint if fuse.NewServer fails
Currently neither gocryptfs nor go-fuse automatically call load_osxfuse
if the /dev/osxfuse* device(s) do not exist. At least tell the user
what to do.
See https://github.com/rfjakob/gocryptfs/issues/124 for user pain.
Diffstat (limited to 'mount.go')
-rw-r--r-- | mount.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -337,6 +337,9 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF srv, err := fuse.NewServer(conn.RawFS(), args.mountpoint, &mOpts) if err != nil { tlog.Fatal.Printf("fuse.NewServer failed: %v", err) + if runtime.GOOS == "darwin" { + tlog.Info.Printf("Maybe you should run: /Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse") + } os.Exit(exitcodes.FuseNewServer) } srv.SetDebug(args.fusedebug) |