From 2f927892199450e95da149dfcef0f8a039088394 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 27 Jul 2015 14:46:41 +1000 Subject: [PATCH] Fixed some build errors. --- ops.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ops.go b/ops.go index 38a9d9e..48cc6fb 100644 --- a/ops.go +++ b/ops.go @@ -34,17 +34,17 @@ func kernelResponse( size := fusekernel.EntryOutSize(protocol) b = buffer.NewOutMessage(size) out := (*fusekernel.EntryOut)(b.Grow(size)) - convertChildInodeEntry(&o.wrapped.Entry, out) + convertChildInodeEntry(&o.Entry, out) case *fuseops.GetInodeAttributesOp: - size := fusekernel.AttrOutSize(o.protocol) + size := fusekernel.AttrOutSize(protocol) b = buffer.NewOutMessage(size) out := (*fusekernel.AttrOut)(b.Grow(size)) out.AttrValid, out.AttrValidNsec = convertExpirationTime(o.AttributesExpiration) convertAttributes(o.Inode, &o.Attributes, &out.Attr) case *fuseops.SetInodeAttributesOp: - size := fusekernel.AttrOutSize(o.protocol) + size := fusekernel.AttrOutSize(protocol) b = buffer.NewOutMessage(size) out := (*fusekernel.AttrOut)(b.Grow(size)) out.AttrValid, out.AttrValidNsec = convertExpirationTime(o.AttributesExpiration) @@ -54,13 +54,13 @@ func kernelResponse( // No response. case *fuseops.MkDirOp: - size := fusekernel.EntryOutSize(o.protocol) + size := fusekernel.EntryOutSize(protocol) b = buffer.NewOutMessage(size) out := (*fusekernel.EntryOut)(b.Grow(size)) convertChildInodeEntry(&o.Entry, out) case *fuseops.CreateFileOp: - eSize := fusekernel.EntryOutSize(o.protocol) + eSize := fusekernel.EntryOutSize(protocol) b = buffer.NewOutMessage(eSize + unsafe.Sizeof(fusekernel.OpenOut{})) e := (*fusekernel.EntryOut)(b.Grow(eSize)) @@ -70,7 +70,7 @@ func kernelResponse( oo.Fh = uint64(o.Handle) case *fuseops.CreateSymlinkOp: - size := fusekernel.EntryOutSize(o.protocol) + size := fusekernel.EntryOutSize(protocol) b = buffer.NewOutMessage(size) out := (*fusekernel.EntryOut)(b.Grow(size)) convertChildInodeEntry(&o.Entry, out)