Commit 1c7ae21c authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Only generate a negative entry when negative timeouts are configured.

parent a327d849
......@@ -42,8 +42,12 @@ func (me *FileSystemConnector) internalLookupWithNode(parent *inode, name string
// Init.
fullPath, mount := parent.GetPath()
if mount == nil {
rootMount := me.rootNode.mount
return NegativeEntry(rootMount.options.NegativeTimeout), OK, nil
timeout := me.rootNode.mount.options.NegativeTimeout
if timeout > 0 {
return NegativeEntry(timeout), OK, nil
} else {
return nil, ENOENT, nil
}
}
fullPath = filepath.Join(fullPath, name)
......
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