Commit 07bf2acc authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Also debug print FUSE_OPEN result.

parent dab44c3a
...@@ -44,9 +44,15 @@ func OsErrorToFuseError(err os.Error) Status { ...@@ -44,9 +44,15 @@ func OsErrorToFuseError(err os.Error) Status {
} }
func replyString(opcode uint32, ptr unsafe.Pointer) string { func replyString(opcode uint32, ptr unsafe.Pointer) string {
var val interface{}
switch opcode { switch opcode {
case FUSE_LOOKUP: case FUSE_LOOKUP:
return fmt.Sprintf("%v", (*EntryOut)(ptr)) val = (*EntryOut)(ptr)
case FUSE_OPEN:
val = (*OpenOut)(ptr)
}
if val != nil {
return fmt.Sprintf("%v", val)
} }
return "" return ""
} }
......
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