Commit 7fc85869 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Move Attr.Print to raw/

parent ce603372
...@@ -18,21 +18,6 @@ func init() { ...@@ -18,21 +18,6 @@ func init() {
} }
} }
func (a *Attr) String() string {
return fmt.Sprintf(
"{M0%o S=%d L=%d "+
"%d:%d "+
"%d*%d %d:%d "+
"A %d.%09d "+
"M %d.%09d "+
"C %d.%09d}",
a.Mode, a.Size, a.Nlink,
a.Uid, a.Gid,
a.Blocks, a.Blksize,
a.Rdev, a.Ino, a.Atime, a.Atimensec, a.Mtime, a.Mtimensec,
a.Ctime, a.Ctimensec)
}
func (me *ReadIn) String() string { func (me *ReadIn) String() string {
return fmt.Sprintf("{Fh %d off %d sz %d %s L %d %s}", return fmt.Sprintf("{Fh %d off %d sz %d %s L %d %s}",
me.Fh, me.Offset, me.Size, me.Fh, me.Offset, me.Size,
......
...@@ -202,3 +202,18 @@ func (me *Kstatfs) String() string { ...@@ -202,3 +202,18 @@ func (me *Kstatfs) String() string {
me.Blocks, me.Bfree, me.Bavail, me.Files, me.Ffree, me.Blocks, me.Bfree, me.Bavail, me.Files, me.Ffree,
me.Bsize, me.NameLen, me.Frsize) me.Bsize, me.NameLen, me.Frsize)
} }
func (a *Attr) String() string {
return fmt.Sprintf(
"{M0%o S=%d L=%d "+
"%d:%d "+
"%d*%d %d:%d "+
"A %d.%09d "+
"M %d.%09d "+
"C %d.%09d}",
a.Mode, a.Size, a.Nlink,
a.Uid, a.Gid,
a.Blocks, a.Blksize,
a.Rdev, a.Ino, a.Atime, a.Atimensec, a.Mtime, a.Mtimensec,
a.Ctime, a.Ctimensec)
}
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