diff --git a/pkg/fuse/fuse.go b/pkg/fuse/fuse.go index 628fe632ea89..3aba1615f2d4 100644 --- a/pkg/fuse/fuse.go +++ b/pkg/fuse/fuse.go @@ -500,7 +500,10 @@ func Serve(v *vfs.VFS, options string, xattrs, ioctl bool) error { } return fmt.Errorf("fuse: %s", err) } - defer fssrv.Unmount() + defer func() { + _ = fssrv.Unmount() + }() + if runtime.GOOS == "linux" { v.InvalidateEntry = func(parent Ino, name string) syscall.Errno { return syscall.Errno(fssrv.EntryNotify(uint64(parent), name))