summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-07-10 23:33:41 +0200
committerJakob Unterwurzacher2017-07-10 23:33:41 +0200
commit849ec10081c0eb04535017f8845501ae799ac477 (patch)
tree5a48f238d2f2c8cce56ca4a754c4a839e147e3de /mount.go
parent9f8e19b8565ba49922aaddd3935b846feb6dc5a3 (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.go3
1 files changed, 3 insertions, 0 deletions
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)