Commit b04236ac authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Pass context into GetAttr for lookup.

parent b4c42def
......@@ -50,7 +50,7 @@ func (me *FileSystemConnector) Lookup(header *InHeader, name string) (out *Entry
var fi *os.FileInfo
var fsNode FsNode
if child != nil {
fi, code = child.fsInode.GetAttr(nil, nil)
fi, code = child.fsInode.GetAttr(nil, context)
fsNode = child.FsNode()
} else {
fi, fsNode, code = parent.fsInode.Lookup(name, context)
......
......@@ -199,7 +199,7 @@ func (me *pathInode) fillNewChildAttr(path string, child *pathInode, c *Context)
// GetPath returns the path relative to the mount governing this
// inode. It returns nil for mount if the file was deleted or the
// filesystem unmounted.
// filesystem unmounted.
func (me *pathInode) GetPath() (path string) {
defer me.RLockTree()()
......
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