Commit b8d3dfd5 authored by Aaron Jacobs's avatar Aaron Jacobs

Fixed statfs and interrupt.

parent 35021f0b
...@@ -266,15 +266,14 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) { ...@@ -266,15 +266,14 @@ func (c *Connection) ReadOp() (op fuseops.Op, err error) {
// Special case: responding to statfs is required to make mounting work on // Special case: responding to statfs is required to make mounting work on
// OS X. We don't currently expose the capability for the file system to // OS X. We don't currently expose the capability for the file system to
// intercept this. // intercept this.
if statfsReq, ok := bfReq.(*fuseshim.StatfsRequest); ok { if _, ok := op.(*fuseops.InternalStatFSOp); ok {
c.debugLog(opID, 1, "-> (Statfs) OK") op.Respond(nil)
statfsReq.Respond(&fuseshim.StatfsResponse{})
continue continue
} }
// Special case: handle interrupt requests. // Special case: handle interrupt requests.
if interruptReq, ok := bfReq.(*fuseshim.InterruptRequest); ok { if interruptOp, ok := op.(*fuseops.InternalInterruptOp); ok {
c.handleInterrupt(interruptReq) c.handleInterrupt(interruptOp.FuseID)
continue continue
} }
......
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