Handle each op in its own goroutine.
parent
4d06d8aef8
commit
0461ddac4f
|
@ -104,6 +104,11 @@ func (s fileSystemServer) ServeOps(c *fuse.Connection) {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
go s.handleOp(op)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s fileSystemServer) handleOp(op fuseops.Op) {
|
||||||
switch typed := op.(type) {
|
switch typed := op.(type) {
|
||||||
default:
|
default:
|
||||||
op.Respond(fuse.ENOSYS)
|
op.Respond(fuse.ENOSYS)
|
||||||
|
@ -163,4 +168,3 @@ func (s fileSystemServer) ServeOps(c *fuse.Connection) {
|
||||||
s.fs.ReleaseFileHandle(typed)
|
s.fs.ReleaseFileHandle(typed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue