Commit e7ded495 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Print methods for XAttr types.

parent 1e1584d1
...@@ -207,6 +207,18 @@ func (me *AccessIn) String() string { ...@@ -207,6 +207,18 @@ func (me *AccessIn) String() string {
return fmt.Sprintf("{%s}", flagString(accessFlagName, int(me.Mask), "")) return fmt.Sprintf("{%s}", flagString(accessFlagName, int(me.Mask), ""))
} }
func (me *SetXAttrIn) String() string {
return fmt.Sprintf("{sz %d f%o}", me.Size, me.Flags)
}
func (me *GetXAttrIn) String() string {
return fmt.Sprintf("{sz %d}", me.Size)
}
func (me *GetXAttrOut) String() string {
return fmt.Sprintf("{sz %d}", me.Size)
}
func (me *Kstatfs) String() string { func (me *Kstatfs) String() string {
return fmt.Sprintf( return fmt.Sprintf(
"{b%d f%d fs%d ff%d bs%d nl%d frs%d}", "{b%d f%d fs%d ff%d bs%d nl%d frs%d}",
......
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