Fixed a build error.

geesefs-0-30-9
Aaron Jacobs 2015-07-24 15:48:23 +10:00
parent eda994c2e6
commit a9693474e8
1 changed files with 3 additions and 2 deletions

View File

@ -9,10 +9,11 @@ import (
"strconv"
"strings"
"syscall"
"github.com/jacobsa/fuse/internal/buffer"
)
var errNoAvail = errors.New("no available fuse devices")
var errNotLoaded = errors.New("osxfusefs is not loaded")
func loadOSXFUSE() error {
@ -68,7 +69,7 @@ func callMount(dir string, conf *mountConfig, f *os.File, ready chan<- struct{},
//
// OSXFUSE seems to ignore InitResponse.MaxWrite, and uses
// this instead.
"-o", "iosize="+strconv.FormatUint(maxWrite, 10),
"-o", "iosize="+strconv.FormatUint(buffer.MaxWriteSize, 10),
// refers to fd passed in cmd.ExtraFiles
"3",
dir,