func (f customErrNode) Lookup(name string, intr fs.Intr) (fs.Node, fuse.Error) { return nil, myCustomError{ ErrorNumber: fuse.Errno(syscall.ENAMETOOLONG), } }
func (f *open) Open(req *fuse.OpenRequest, resp *fuse.OpenResponse, intr fs.Intr) (fs.Handle, fuse.Error) { f.Opens.Open(req, resp, intr) // pick a really distinct error, to identify it later return nil, fuse.Errno(syscall.ENAMETOOLONG) }
"sync" "syscall" "time" "camlistore.org/pkg/blob" "camlistore.org/pkg/client" "camlistore.org/pkg/lru" "camlistore.org/pkg/schema" "camlistore.org/third_party/bazil.org/fuse" fusefs "camlistore.org/third_party/bazil.org/fuse/fs" ) var serverStart = time.Now() var errNotDir = fuse.Errno(syscall.ENOTDIR) type CamliFileSystem struct { fetcher blob.Fetcher client *client.Client // or nil, if not doing search queries root fusefs.Node // IgnoreOwners, if true, collapses all file ownership to the // uid/gid running the fuse filesystem, and sets all the // permissions to 0600/0700. IgnoreOwners bool blobToSchema *lru.Cache // ~map[blobstring]*schema.Blob nameToBlob *lru.Cache // ~map[string]blob.Ref nameToAttr *lru.Cache // ~map[string]*fuse.Attr }
func (badRootFS) Root() (fs.Node, fuse.Error) { // pick a really distinct error, to identify it later return nil, fuse.Errno(syscall.ENAMETOOLONG) }
func (f *open) Open(req *fuse.OpenRequest, resp *fuse.OpenResponse, intr Intr) (Handle, fuse.Error) { f.seen <- openSeen{dir: req.Dir, flags: req.Flags} // pick a really distinct error, to identify it later return nil, fuse.Errno(syscall.ENAMETOOLONG) }