Lines Matching defs:fuse

87 struct fuse {
134 struct fuse *fuse;
166 fprintf(stderr, "fuse: memory allocation failed\n");
174 fprintf(stderr, "fuse: %s\n", dlerror());
178 fprintf(stderr, "fuse: %s did not register any modules", soname);
195 fprintf(stderr, "fuse: memory allocation failed\n");
256 static struct node *get_node_nocheck(struct fuse *f, fuse_ino_t nodeid)
268 static struct node *get_node(struct fuse *f, fuse_ino_t nodeid)
272 fprintf(stderr, "fuse internal error: node %llu not found\n",
285 static void unhash_id(struct fuse *f, struct node *node)
297 static void hash_id(struct fuse *f, struct node *node)
304 static unsigned int name_hash(struct fuse *f, fuse_ino_t parent,
316 static void unref_node(struct fuse *f, struct node *node);
318 static void unhash_name(struct fuse *f, struct node *node)
334 fprintf(stderr, "fuse internal error: unable to unhash node: %llu\n",
340 static int hash_name(struct fuse *f, struct node *node, fuse_ino_t parentid,
356 static void delete_node(struct fuse *f, struct node *node)
366 static void unref_node(struct fuse *f, struct node *node)
374 static fuse_ino_t next_id(struct fuse *f)
385 static struct node *lookup_node(struct fuse *f, fuse_ino_t parent,
398 static struct node *find_node(struct fuse *f, fuse_ino_t parent,
462 fprintf(stderr, "fuse: path too long: ...%s\n", s + len);
473 static char *get_path_name(struct fuse *f, fuse_ino_t nodeid, const char *name)
558 static char *get_path(struct fuse *f, fuse_ino_t nodeid)
563 static void forget_node(struct fuse *f, fuse_ino_t nodeid, uint64_t nlookup)
579 static void remove_node(struct fuse *f, fuse_ino_t dir, const char *name)
590 static int rename_node(struct fuse *f, fuse_ino_t olddir, const char *oldname,
605 fprintf(stderr, "fuse: hidden file got created during hiding\n");
626 static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf)
638 static struct fuse *req_fuse(fuse_req_t req)
640 return (struct fuse *) fuse_req_userdata(req);
658 struct fuse *f = req_fuse(req);
677 static void fuse_do_finish_interrupt(struct fuse *f, fuse_req_t req,
696 static void fuse_finish_interrupt(struct fuse *f, fuse_req_t req,
703 static void fuse_prepare_interrupt(struct fuse *f, fuse_req_t req,
1057 static int is_open(struct fuse *f, fuse_ino_t dir, const char *name)
1069 static char *hidden_name(struct fuse *f, fuse_ino_t dir, const char *oldname,
1108 static int hide_node(struct fuse *f, const char *oldpath,
1145 perror("fuse: clock_gettime");
1163 static int lookup_path(struct fuse *f, fuse_ino_t nodeid,
1211 fprintf(stderr, "fuse: failed to allocate thread specific data\n");
1231 fprintf(stderr, "fuse: failed to create thread specific key: %s\n",
1253 static struct fuse *req_fuse_prepare(fuse_req_t req)
1258 c->ctx.fuse = req_fuse(req);
1265 return c->ctx.fuse;
1282 struct fuse *f = req_fuse(req);
1305 struct fuse *f = (struct fuse *) data;
1309 c->ctx.fuse = f;
1327 struct fuse *f = (struct fuse *) data;
1331 c->ctx.fuse = f;
1339 struct fuse *f = req_fuse_prepare(req);
1368 struct fuse *f = req_fuse(req);
1378 struct fuse *f = req_fuse_prepare(req);
1423 struct fuse *f = req_fuse_prepare(req);
1504 struct fuse *f = req_fuse_prepare(req);
1526 struct fuse *f = req_fuse_prepare(req);
1552 struct fuse *f = req_fuse_prepare(req);
1592 struct fuse *f = req_fuse_prepare(req);
1618 struct fuse *f = req_fuse_prepare(req);
1646 struct fuse *f = req_fuse_prepare(req);
1671 struct fuse *f = req_fuse_prepare(req);
1698 struct fuse *f = req_fuse_prepare(req);
1733 struct fuse *f = req_fuse_prepare(req);
1761 static void fuse_do_release(struct fuse *f, fuse_ino_t ino, const char *path,
1787 struct fuse *f = req_fuse_prepare(req);
1849 static void open_auto_cache(struct fuse *f, fuse_ino_t ino, const char *path,
1884 struct fuse *f = req_fuse_prepare(req);
1932 struct fuse *f = req_fuse_prepare(req);
1965 fprintf(stderr, "fuse: read too many bytes");
1976 struct fuse *f = req_fuse_prepare(req);
2003 fprintf(stderr, "fuse: wrote too many bytes");
2012 struct fuse *f = req_fuse_prepare(req);
2045 struct fuse *f = req_fuse_prepare(req);
2058 dh->fuse = f;
2141 if (!dh->fuse->conf.use_ino) {
2143 if (dh->fuse->conf.readdir_ino) {
2145 pthread_mutex_lock(&dh->fuse->lock);
2146 node = lookup_node(dh->fuse, dh->nodeid, name);
2149 pthread_mutex_unlock(&dh->fuse->lock);
2175 static int readdir_fill(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
2208 struct fuse *f = req_fuse_prepare(req);
2243 struct fuse *f = req_fuse_prepare(req);
2268 struct fuse *f = req_fuse_prepare(req);
2291 struct fuse *f = req_fuse_prepare(req);
2323 struct fuse *f = req_fuse_prepare(req);
2341 static int common_getxattr(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
2364 struct fuse *f = req_fuse_prepare(req);
2388 static int common_listxattr(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
2410 struct fuse *f = req_fuse_prepare(req);
2437 struct fuse *f = req_fuse_prepare(req);
2571 static int fuse_flush_common(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
2605 struct fuse *f = req_fuse_prepare(req);
2635 struct fuse *f = req_fuse_prepare(req);
2653 struct fuse *f = req_fuse_prepare(req);
2677 struct fuse *f = req_fuse(req);
2703 struct fuse *f = req_fuse(req);
2717 struct fuse *f = req_fuse_prepare(req);
2743 struct fuse *f = req_fuse_prepare(req);
2832 struct fuse_session *fuse_get_session(struct fuse *f)
2837 int fuse_loop(struct fuse *f)
2845 void fuse_exit(struct fuse *f)
2976 perror("fuse: cannot get old signal handler");
2988 perror("fuse: cannot set interrupt signal handler");
3007 static int fuse_push_module(struct fuse *f, const char *module,
3037 fprintf(stderr, "fuse: warning: library too old, some operations may not not work\n");
3043 fprintf(stderr, "fuse: failed to allocate fuse_fs object\n");
3053 struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args,
3057 struct fuse *f;
3065 f = (struct fuse *) calloc(1, sizeof(struct fuse));
3067 fprintf(stderr, "fuse: failed to allocate fuse object\n");
3138 fprintf(stderr, "fuse: memory allocation failed\n");
3146 fprintf(stderr, "fuse: memory allocation failed\n");
3155 fprintf(stderr, "fuse: memory allocation failed\n");
3161 fprintf(stderr, "fuse: memory allocation failed\n");
3204 void fuse_destroy(struct fuse *f)
3215 c->ctx.fuse = f;