Fixed two bugs where ChildInodeEntry.Child was not filled in.

geesefs-0-30-9
Aaron Jacobs 2015-03-03 09:41:45 +11:00
parent 75a65d4a03
commit fc7440e588
1 changed files with 2 additions and 0 deletions

View File

@ -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