func (badRootFS) Root() (fs.Node, error) { // pick a really distinct error, to identify it later return nil, fuse.Errno(syscall.ENAMETOOLONG) }
func (panicSentinel) Errno() fuse.Errno { return fuse.Errno(syscall.ENAMETOOLONG) }
func (attrBad) Attr(ctx context.Context, attr *fuse.Attr) error { return fuse.Errno(syscall.ENAMETOOLONG) }
func (f customErrNode) Lookup(ctx context.Context, name string) (fs.Node, error) { return nil, myCustomError{ ErrorNumber: fuse.Errno(syscall.ENAMETOOLONG), } }
func (f *open) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error) { f.Opens.Open(ctx, req, resp) // pick a really distinct error, to identify it later return nil, fuse.Errno(syscall.ENAMETOOLONG) }
func (s *Node) Readlink(ctx context.Context, req *fuse.ReadlinkRequest) (string, error) { if s.cached.GetType() != ftpb.Data_Symlink { return "", fuse.Errno(syscall.EINVAL) } return string(s.cached.GetData()), nil }
func (createrDir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error) { // pick a really distinct error, to identify it later return nil, nil, fuse.Errno(syscall.ENAMETOOLONG) }