Commit 55aa1802 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix printing for FsyncIn and SetAttr.fh

parent 850263fa
......@@ -125,7 +125,7 @@ func (me *SetAttrIn) string() string {
if me.Valid&FATTR_MTIME != 0 {
s = append(s, fmt.Sprintf("mtime %d.%09d", me.Mtime, me.Mtimensec))
}
if me.Valid&FATTR_MTIME != 0 {
if me.Valid&FATTR_FH != 0 {
s = append(s, fmt.Sprintf("fh %d", me.Fh))
}
// TODO - FATTR_ATIME_NOW = (1 << 7), FATTR_MTIME_NOW = (1 << 8), FATTR_LOCKOWNER = (1 << 9)
......@@ -148,7 +148,7 @@ func (me *OpenOut) string() string {
FlagString(FuseOpenFlagNames, int64(me.OpenFlags), ""))
}
func (me *InitIn) String() string {
func (me *InitIn) string() string {
return fmt.Sprintf("{%d.%d Ra 0x%x %s}",
me.Major, me.Minor, me.MaxReadAhead,
FlagString(initFlagNames, int64(me.Flags), ""))
......@@ -161,6 +161,10 @@ func (me *InitOut) string() string {
me.CongestionThreshold, me.MaxBackground, me.MaxWrite)
}
func (s *FsyncIn) string() string {
return fmt.Sprintf("{Fh %d Flags %x}", s.Fh, s.FsyncFlags)
}
func (me *SetXAttrIn) string() string {
return fmt.Sprintf("{sz %d f%o}", me.Size, me.Flags)
}
......
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