Set GOMAXPROCS=2 in mount_sample to help flush out issues like #4.

geesefs-0-30-9
Aaron Jacobs 2015-03-24 11:53:32 +11:00
parent 53bae01f57
commit 38862e8650
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import (
"fmt" "fmt"
"log" "log"
"os" "os"
"runtime"
"github.com/jacobsa/bazilfuse" "github.com/jacobsa/bazilfuse"
"github.com/jacobsa/fuse" "github.com/jacobsa/fuse"
@ -112,6 +113,10 @@ func getReadyFile() (f *os.File, err error) {
func main() { func main() {
flag.Parse() flag.Parse()
// Allow parallelism in the file system implementation, to help flush out
// bugs like https://github.com/jacobsa/fuse/issues/4.
runtime.GOMAXPROCS(2)
// Grab the file to signal when ready. // Grab the file to signal when ready.
readyFile, err := getReadyFile() readyFile, err := getReadyFile()
if err != nil { if err != nil {