do not add new inode during link
This commit is contained in:
@@ -102,9 +102,9 @@ func (wfs *WFS) Link(cancel <-chan struct{}, in *fuse.LinkIn, name string, out *
|
||||
return fuse.EIO
|
||||
}
|
||||
|
||||
inode := wfs.inodeToPath.Lookup(newEntryPath, oldEntry.Attributes.Crtime, oldEntry.IsDirectory, true, oldEntry.Attributes.Inode, true)
|
||||
wfs.inodeToPath.AddPath(oldEntry.Attributes.Inode, newEntryPath)
|
||||
|
||||
wfs.outputPbEntry(out, inode, request.Entry)
|
||||
wfs.outputPbEntry(out, oldEntry.Attributes.Inode, request.Entry)
|
||||
|
||||
return fuse.OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user