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

Call parent.addChild() when hard-linking to existing Inode.

parent 47d385f2
...@@ -305,6 +305,7 @@ func (me *FileSystemConnector) Link(header *InHeader, input *LinkIn, name string ...@@ -305,6 +305,7 @@ func (me *FileSystemConnector) Link(header *InHeader, input *LinkIn, name string
out, _ = me.createChild(parent, name, fi, fsInode) out, _ = me.createChild(parent, name, fi, fsInode)
} else { } else {
fsInode.Inode().addLookupCount(1) fsInode.Inode().addLookupCount(1)
parent.addChild(name, fsInode.Inode())
out = parent.mount.fileInfoToEntry(fi) out = parent.mount.fileInfoToEntry(fi)
out.Ino = fsInode.Inode().nodeId out.Ino = fsInode.Inode().nodeId
out.NodeId = out.Ino out.NodeId = out.Ino
......
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