Fixed a bug: the flags parameter is in and out.
parent
3f954b3056
commit
96b8ce71f0
|
@ -159,6 +159,8 @@ func (c *Connection) Init() (err error) {
|
||||||
initOp.MaxReadahead = maxReadahead
|
initOp.MaxReadahead = maxReadahead
|
||||||
initOp.MaxWrite = buffer.MaxWriteSize
|
initOp.MaxWrite = buffer.MaxWriteSize
|
||||||
|
|
||||||
|
initOp.Flags = 0
|
||||||
|
|
||||||
// Tell the kernel not to use pitifully small 4 KiB writes.
|
// Tell the kernel not to use pitifully small 4 KiB writes.
|
||||||
initOp.Flags |= fusekernel.InitBigWrites
|
initOp.Flags |= fusekernel.InitBigWrites
|
||||||
|
|
||||||
|
|
4
ops.go
4
ops.go
|
@ -40,9 +40,11 @@ type initOp struct {
|
||||||
// In
|
// In
|
||||||
Kernel fusekernel.Protocol
|
Kernel fusekernel.Protocol
|
||||||
|
|
||||||
|
// In/out
|
||||||
|
Flags fusekernel.InitFlags
|
||||||
|
|
||||||
// Out
|
// Out
|
||||||
Library fusekernel.Protocol
|
Library fusekernel.Protocol
|
||||||
MaxReadahead uint32
|
MaxReadahead uint32
|
||||||
Flags fusekernel.InitFlags
|
|
||||||
MaxWrite uint32
|
MaxWrite uint32
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue