From 02e146f3e1663f2d957d2a8d55155d131820f790 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 2 Mar 2021 08:54:18 -0800 Subject: [PATCH] return err --- weed/filesys/dir_link.go | 4 ++++ 1 file changed, 4 insertions(+) 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)