From 8d03662cde7fb4a76465cbe6611e91414ae8b2a4 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 2 Mar 2015 15:55:26 +1100 Subject: [PATCH] Finished inode.LookUpChild. --- samples/memfs/inode.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/samples/memfs/inode.go b/samples/memfs/inode.go index 463e56a..e29e0b5 100644 --- a/samples/memfs/inode.go +++ b/samples/memfs/inode.go @@ -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.