Commit 31a5c5c8 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Report mount errors.

parent 5e4c1b67
...@@ -9,7 +9,6 @@ import ( ...@@ -9,7 +9,6 @@ import (
"os" "os"
"expvar" "expvar"
"flag" "flag"
"runtime"
"strings" "strings"
) )
...@@ -31,8 +30,14 @@ func main() { ...@@ -31,8 +30,14 @@ func main() {
state.Debug = *debug state.Debug = *debug
mountPoint := flag.Arg(1) mountPoint := flag.Arg(1)
state.Mount(mountPoint) err := state.Mount(mountPoint)
cpus := fuse.CountCpus() if err != nil {
fmt.Printf("MountFuse fail: %v\n", err)
os.Exit(1)
}
// TODO - figure out what a good value is.
cpus := 1
// cpus := fuse.CountCpus()
if cpus > 1 { if cpus > 1 {
runtime.GOMAXPROCS(cpus) runtime.GOMAXPROCS(cpus)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment