return err

This commit is contained in:
Chris Lu 2021-03-02 08:54:18 -08:00
parent 5511722420
commit 02e146f3e1

View file

@ -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)