Commit 7ce43a45 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

If ClientInodes are switched off, return ENOSYS for hardlinks.

parent 3b9d2f33
......@@ -420,6 +420,10 @@ func (me *pathInode) Rename(oldName string, newParent FsNode, newName string, co
}
func (me *pathInode) Link(name string, existingFsnode FsNode, context *Context) (fi *os.FileInfo, newNode FsNode, code Status) {
if !me.pathFs.options.ClientInodes {
return nil, nil, ENOSYS
}
newPath := filepath.Join(me.GetPath(), name)
existing := existingFsnode.(*pathInode)
oldPath := existing.GetPath()
......
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