Commit 1b73d273 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Debug for Flush.

parent f72abcb4
......@@ -494,6 +494,7 @@ func init() {
// Inputs.
for op, f := range map[opcode]castPointerFunc{
_OP_FLUSH: func(ptr unsafe.Pointer) interface{} { return (*FlushIn)(ptr) },
_OP_GETATTR: func(ptr unsafe.Pointer) interface{} { return (*GetAttrIn)(ptr) },
_OP_SETATTR: func(ptr unsafe.Pointer) interface{} { return (*SetAttrIn)(ptr) },
_OP_INIT: func(ptr unsafe.Pointer) interface{} { return (*InitIn)(ptr) },
......
......@@ -128,7 +128,7 @@ func (me *Attr) String() string {
func (me *CreateIn) String() string {
return fmt.Sprintf(
"{0%o [%s] (0%o)}", me.Flags,
"{0%o [%s] (0%o)}", me.Mode,
flagString(openFlagNames, int(me.Flags), "O_RDONLY"), me.Umask)
}
......@@ -174,8 +174,12 @@ func (me *MknodIn) String() string {
}
func (me *ReleaseIn) String() string {
return fmt.Sprintf("{Fh %d %s %s %d}",
return fmt.Sprintf("{Fh %d %s %s L%d}",
me.Fh, flagString(openFlagNames, int(me.Flags), ""),
flagString(releaseFlagNames, int(me.ReleaseFlags), ""),
me.LockOwner)
}
func (me *FlushIn) String() string {
return fmt.Sprintf("{Fh %d}", me.Fh)
}
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