diff --git a/connection.go b/connection.go index 1b1b246..fd1fb56 100644 --- a/connection.go +++ b/connection.go @@ -159,6 +159,8 @@ func (c *Connection) Init() (err error) { initOp.MaxReadahead = maxReadahead initOp.MaxWrite = buffer.MaxWriteSize + initOp.Flags = 0 + // Tell the kernel not to use pitifully small 4 KiB writes. initOp.Flags |= fusekernel.InitBigWrites diff --git a/ops.go b/ops.go index 13ede33..8f52850 100644 --- a/ops.go +++ b/ops.go @@ -40,9 +40,11 @@ type initOp struct { // In Kernel fusekernel.Protocol + // In/out + Flags fusekernel.InitFlags + // Out Library fusekernel.Protocol MaxReadahead uint32 - Flags fusekernel.InitFlags MaxWrite uint32 }