diff --git a/weed/filesys/dir_link.go b/weed/filesys/dir_link.go index ba3280f03..29391faeb 100644 --- a/weed/filesys/dir_link.go +++ b/weed/filesys/dir_link.go @@ -83,6 +83,10 @@ func (dir *Dir) Link(ctx context.Context, req *fuse.LinkRequest, old fs.Node) (f return nil }) + if err != nil { + return nil, fuse.EIO + } + // create new file node newNode := dir.newFile(req.NewName, request.Entry) newFile := newNode.(*File)