From a9693474e8b68e2bb96fc564f90f07fa2a767182 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 24 Jul 2015 15:48:23 +1000 Subject: [PATCH] Fixed a build error. --- mount_darwin.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mount_darwin.go b/mount_darwin.go index c540228..ababb03 100644 --- a/mount_darwin.go +++ b/mount_darwin.go @@ -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,