Commit 9473722e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: fix pollHack response to SETATTR

On OSX, syscall.O_TRUNC on the Create call apparently triggers a
SETATTR call with size 0, which must be responded to correctly.

Change-Id: Icb99891eae99ced6ffbd5fb1dadf42ffad687534
parent 4a458845
...@@ -28,7 +28,7 @@ func doPollHackLookup(ms *Server, req *request) { ...@@ -28,7 +28,7 @@ func doPollHackLookup(ms *Server, req *request) {
Fh: pollHackInode, Fh: pollHackInode,
} }
req.status = OK req.status = OK
case _OP_GETATTR: case _OP_GETATTR, _OP_SETATTR:
out := (*AttrOut)(req.outData()) out := (*AttrOut)(req.outData())
out.Attr = attr out.Attr = attr
req.status = OK req.status = OK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment