From fc7440e58840a167e7e623e78bcbd0898de085d3 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 3 Mar 2015 09:41:45 +1100 Subject: [PATCH] Fixed two bugs where ChildInodeEntry.Child was not filled in. --- samples/memfs/fs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/memfs/fs.go b/samples/memfs/fs.go index 10cfc55..be7096d 100644 --- a/samples/memfs/fs.go +++ b/samples/memfs/fs.go @@ -191,6 +191,7 @@ func (fs *memFS) LookUpInode( defer child.mu.RUnlock() // Fill in the response. + resp.Entry.Child = childID resp.Entry.Attributes = child.attributes // We don't spontaneously mutate, so the kernel can cache as long as it wants @@ -244,6 +245,7 @@ func (fs *memFS) MkDir( parent.AddChild(childID, req.Name, fuseutil.DT_Directory) // Fill in the response. + resp.Entry.Child = childID resp.Entry.Attributes = child.attributes // We don't spontaneously mutate, so the kernel can cache as long as it wants