Finished inode.LookUpChild.

geesefs-0-30-9
Aaron Jacobs 2015-03-02 15:55:26 +11:00
parent 44b62ac9c3
commit 8d03662cde
1 changed files with 9 additions and 1 deletions

View File

@ -75,7 +75,15 @@ func (inode *inode) LookUpChild(name string) (id fuse.InodeID, ok bool) {
panic("LookUpChild called on non-directory.")
}
panic("TODO")
for _, e := range inode.entries {
if e.Name == name {
id = e.Inode
ok = true
return
}
}
return
}
// Serve a ReadDir request.