Fixed a bug: the flags parameter is in and out.

geesefs-0-30-9
Aaron Jacobs 2015-07-29 14:20:34 +10:00
parent 3f954b3056
commit 96b8ce71f0
2 changed files with 5 additions and 1 deletions

View File

@ -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

4
ops.go
View File

@ -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
}