From 849ec10081c0eb04535017f8845501ae799ac477 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 10 Jul 2017 23:33:41 +0200 Subject: [PATCH] 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. --- mount.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mount.go b/mount.go index 301e95c..eed1b00 100644 --- a/mount.go +++ b/mount.go @@ -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)