Changed method order.

geesefs-0-30-9
Aaron Jacobs 2015-07-24 11:48:24 +10:00
parent 497407fde2
commit ff42037981
1 changed files with 8 additions and 8 deletions

View File

@ -114,6 +114,14 @@ type GetInodeAttributesOp struct {
AttributesExpiration time.Time
}
func (o *GetInodeAttributesOp) DebugString() string {
return fmt.Sprintf(
"Inode: %d, Exp: %v, Attr: %s",
o.Inode,
o.AttributesExpiration,
o.Attributes.DebugString())
}
func (o *GetInodeAttributesOp) kernelResponse() (msg []byte) {
size := fusekernel.AttrOutSize(fusekernel.Protocol{0, 0})
buf := fuseshim.NewBuffer(size)
@ -125,14 +133,6 @@ func (o *GetInodeAttributesOp) kernelResponse() (msg []byte) {
return
}
func (o *GetInodeAttributesOp) DebugString() string {
return fmt.Sprintf(
"Inode: %d, Exp: %v, Attr: %s",
o.Inode,
o.AttributesExpiration,
o.Attributes.DebugString())
}
// Change attributes for an inode.
//
// The kernel sends this for obvious cases like chmod(2), and for less obvious