diff --git a/fuseops/ops.go b/fuseops/ops.go index 74c2074..3583bb7 100644 --- a/fuseops/ops.go +++ b/fuseops/ops.go @@ -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