Commit c75db4a1 authored by Aaron Jacobs's avatar Aaron Jacobs

memFS.ReadSymlin

parent 05091dee
......@@ -597,3 +597,21 @@ func (fs *memFS) WriteFile(
return
}
func (fs *memFS) ReadSymlink(
op *fuseops.ReadSymlinkOp) {
var err error
defer fuseutil.RespondToOp(op, &err)
fs.mu.Lock()
defer fs.mu.Unlock()
// Find the inode in question.
inode := fs.getInodeForReadingOrDie(op.Inode)
defer inode.mu.Unlock()
// Serve the request.
op.Target = inode.target
return
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment