Lines Matching defs:fuse

107 struct fuse {
172 struct fuse *fuse;
210 fuse_log(FUSE_LOG_ERR, "fuse: failed to allocate module\n");
215 fuse_log(FUSE_LOG_ERR, "fuse: failed to allocate module name\n");
252 fuse_log(FUSE_LOG_ERR, "fuse: memory allocation failed\n");
258 fuse_log(FUSE_LOG_ERR, "fuse: failed to allocate module so\n");
264 fuse_log(FUSE_LOG_ERR, "fuse: dlopen(%s) failed: %s\n",
272 fuse_log(FUSE_LOG_ERR, "fuse: symbol <%s> not found in module: %s\n",
386 static inline int lru_enabled(struct fuse *f)
396 static size_t get_node_size(struct fuse *f)
410 static struct node_slab *node_to_slab(struct fuse *f, struct node *node)
415 static int alloc_slab(struct fuse *f)
447 static struct node *alloc_node(struct fuse *f)
470 static void free_slab(struct fuse *f, struct node_slab *slab)
477 fuse_log(FUSE_LOG_WARNING, "fuse warning: munmap(%p) failed\n",
481 static void free_node_mem(struct fuse *f, struct node *node)
498 static struct node *alloc_node(struct fuse *f)
503 static void free_node_mem(struct fuse *f, struct node *node)
510 static size_t id_hash(struct fuse *f, fuse_ino_t ino)
521 static struct node *get_node_nocheck(struct fuse *f, fuse_ino_t nodeid)
533 static struct node *get_node(struct fuse *f, fuse_ino_t nodeid)
537 fuse_log(FUSE_LOG_ERR, "fuse internal error: node %llu not found\n",
555 static void set_forget_time(struct fuse *f, struct node *node)
564 static void free_node(struct fuse *f, struct node *node)
587 static void remerge_id(struct fuse *f)
613 static void unhash_id(struct fuse *f, struct node *node)
645 static void rehash_id(struct fuse *f)
674 static void hash_id(struct fuse *f, struct node *node)
685 static size_t name_hash(struct fuse *f, fuse_ino_t parent,
702 static void unref_node(struct fuse *f, struct node *node);
704 static void remerge_name(struct fuse *f)
730 static void unhash_name(struct fuse *f, struct node *node)
752 "fuse internal error: unable to unhash node: %llu\n",
758 static void rehash_name(struct fuse *f)
787 static int hash_name(struct fuse *f, struct node *node, fuse_ino_t parentid,
813 static void delete_node(struct fuse *f, struct node *node)
827 static void unref_node(struct fuse *f, struct node *node)
835 static fuse_ino_t next_id(struct fuse *f)
846 static struct node *lookup_node(struct fuse *f, fuse_ino_t parent,
867 static struct node *find_node(struct fuse *f, fuse_ino_t parent,
906 static int lookup_path_in_cache(struct fuse *f,
969 static void unlock_path(struct fuse *f, fuse_ino_t nodeid, struct node *wnode,
990 static int try_get_path(struct fuse *f, fuse_ino_t nodeid, const char *name,
1072 static int try_get_path2(struct fuse *f, fuse_ino_t nodeid1, const char *name1,
1093 static void queue_element_wakeup(struct fuse *f, struct lock_queue_element *qe)
1125 static void wake_up_queued(struct fuse *f)
1133 static void debug_path(struct fuse *f, const char *msg, fuse_ino_t nodeid,
1152 static void queue_path(struct fuse *f, struct lock_queue_element *qe)
1163 static void dequeue_path(struct fuse *f, struct lock_queue_element *qe)
1172 static int wait_path(struct fuse *f, struct lock_queue_element *qe)
1185 static int get_path_common(struct fuse *f, fuse_ino_t nodeid, const char *name,
1208 static int get_path(struct fuse *f, fuse_ino_t nodeid, char **path)
1213 static int get_path_nullok(struct fuse *f, fuse_ino_t nodeid, char **path)
1228 static int get_path_name(struct fuse *f, fuse_ino_t nodeid, const char *name,
1234 static int get_path_wrlock(struct fuse *f, fuse_ino_t nodeid, const char *name,
1245 static int check_dir_loop(struct fuse *f,
1283 static int get_path2(struct fuse *f, fuse_ino_t nodeid1, const char *name1,
1331 static void free_path_wrlock(struct fuse *f, fuse_ino_t nodeid,
1342 static void free_path(struct fuse *f, fuse_ino_t nodeid, char *path)
1348 static void free_path2(struct fuse *f, fuse_ino_t nodeid1, fuse_ino_t nodeid2,
1361 static void forget_node(struct fuse *f, fuse_ino_t nodeid, uint64_t nlookup)
1399 static void unlink_node(struct fuse *f, struct node *node)
1408 static void remove_node(struct fuse *f, fuse_ino_t dir, const char *name)
1419 static int rename_node(struct fuse *f, fuse_ino_t olddir, const char *oldname,
1434 fuse_log(FUSE_LOG_ERR, "fuse: hidden file got created during hiding\n");
1455 static int exchange_node(struct fuse *f, fuse_ino_t olddir, const char *oldname,
1486 static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf)
1499 static struct fuse *req_fuse(fuse_req_t req)
1501 return (struct fuse *) fuse_req_userdata(req);
1519 struct fuse *f = req_fuse(req);
1538 static void fuse_do_finish_interrupt(struct fuse *f, fuse_req_t req,
1557 static inline void fuse_finish_interrupt(struct fuse *f, fuse_req_t req,
1564 static inline void fuse_prepare_interrupt(struct fuse *f, fuse_req_t req,
1782 fuse_log(FUSE_LOG_ERR, "fuse: read too many bytes\n");
1827 fuse_log(FUSE_LOG_ERR, "fuse: read too many bytes\n");
1891 fuse_log(FUSE_LOG_ERR, "fuse: wrote too many bytes\n");
2355 static int is_open(struct fuse *f, fuse_ino_t dir, const char *name)
2367 static char *hidden_name(struct fuse *f, fuse_ino_t dir, const char *oldname,
2407 static int hide_node(struct fuse *f, const char *oldpath,
2443 perror("fuse: clock_gettime");
2459 static int do_lookup(struct fuse *f, fuse_ino_t nodeid, const char *name,
2481 static int lookup_path(struct fuse *f, fuse_ino_t nodeid,
2504 static struct fuse_context_i *fuse_create_context(struct fuse *f)
2515 fuse_log(FUSE_LOG_ERR, "fuse: failed to allocate thread specific data\n");
2522 c->ctx.fuse = f;
2539 fuse_log(FUSE_LOG_ERR, "fuse: failed to create thread specific key: %s\n",
2561 static struct fuse *req_fuse_prepare(fuse_req_t req)
2570 return c->ctx.fuse;
2583 struct fuse *f = req_fuse(req);
2609 struct fuse *f = (struct fuse *) data;
2626 struct fuse *f = (struct fuse *) data;
2635 struct fuse *f = req_fuse_prepare(req);
2689 static void do_forget(struct fuse *f, fuse_ino_t ino, uint64_t nlookup)
2706 struct fuse *f = req_fuse(req);
2719 struct fuse *f = req_fuse_prepare(req);
2773 struct fuse *f = req_fuse_prepare(req);
2853 struct fuse *f = req_fuse_prepare(req);
2871 struct fuse *f = req_fuse_prepare(req);
2894 struct fuse *f = req_fuse_prepare(req);
2932 struct fuse *f = req_fuse_prepare(req);
2954 struct fuse *f = req_fuse_prepare(req);
2993 struct fuse *f = req_fuse_prepare(req);
3015 struct fuse *f = req_fuse_prepare(req);
3038 struct fuse *f = req_fuse_prepare(req);
3075 struct fuse *f = req_fuse_prepare(req);
3097 static void fuse_do_release(struct fuse *f, fuse_ino_t ino, const char *path,
3133 struct fuse *f = req_fuse_prepare(req);
3187 static void open_auto_cache(struct fuse *f, fuse_ino_t ino, const char *path,
3221 struct fuse *f = req_fuse_prepare(req);
3267 struct fuse *f = req_fuse_prepare(req);
3294 struct fuse *f = req_fuse_prepare(req);
3317 struct fuse *f = req_fuse_prepare(req);
3345 struct fuse *f = req_fuse_prepare(req);
3358 dh->fuse = f;
3446 static fuse_ino_t lookup_nodeid(struct fuse *f, fuse_ino_t parent,
3479 if (!dh->fuse->conf.use_ino) {
3481 if (dh->fuse->conf.readdir_ino) {
3483 lookup_nodeid(dh->fuse, dh->nodeid, name);
3534 struct fuse *f = dh->fuse;
3607 static int readdir_fill(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
3695 struct fuse *f = req_fuse_prepare(req);
3741 struct fuse *f = req_fuse_prepare(req);
3766 struct fuse *f = req_fuse_prepare(req);
3786 struct fuse *f = req_fuse_prepare(req);
3812 struct fuse *f = req_fuse_prepare(req);
3827 static int common_getxattr(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
3847 struct fuse *f = req_fuse_prepare(req);
3871 static int common_listxattr(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
3890 struct fuse *f = req_fuse_prepare(req);
3917 struct fuse *f = req_fuse_prepare(req);
4051 static int fuse_flush_common(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
4086 struct fuse *f = req_fuse_prepare(req);
4109 struct fuse *f = req_fuse_prepare(req);
4124 struct fuse *f = req_fuse_prepare(req);
4145 struct fuse *f = req_fuse(req);
4172 struct fuse *f = req_fuse(req);
4186 struct fuse *f = req_fuse_prepare(req);
4204 struct fuse *f = req_fuse_prepare(req);
4227 struct fuse *f = req_fuse_prepare(req);
4278 struct fuse *f = req_fuse_prepare(req);
4300 struct fuse *f = req_fuse_prepare(req);
4321 struct fuse *f = req_fuse_prepare(req);
4357 struct fuse *f = req_fuse_prepare(req);
4379 static int clean_delay(struct fuse *f)
4397 int fuse_clean_cache(struct fuse *f)
4484 struct fuse_session *fuse_get_session(struct fuse *f)
4489 static int fuse_session_loop_remember(struct fuse *f)
4541 int fuse_loop(struct fuse *f)
4553 int fuse_loop_mt_312(struct fuse *f, struct fuse_loop_config *config)
4567 int fuse_loop_mt_32(struct fuse *f, struct fuse_loop_config_v1 *config_v1);
4569 int fuse_loop_mt_32(struct fuse *f, struct fuse_loop_config_v1 *config_v1)
4584 int fuse_loop_mt_31(struct fuse *f, int clone_fd);
4586 int fuse_loop_mt_31(struct fuse *f, int clone_fd)
4603 void fuse_exit(struct fuse *f)
4637 int fuse_invalidate_path(struct fuse *f, const char *path) {
4765 perror("fuse: cannot get old signal handler");
4777 perror("fuse: cannot set interrupt signal handler");
4795 static int fuse_push_module(struct fuse *f, const char *module,
4820 fuse_log(FUSE_LOG_ERR, "fuse: warning: library too old, some operations may not not work\n");
4826 fuse_log(FUSE_LOG_ERR, "fuse: failed to allocate fuse_fs object\n");
4841 fuse_log(FUSE_LOG_ERR, "fuse: memory allocation failed\n");
4850 static void *fuse_prune_nodes(void *fuse)
4852 struct fuse *f = fuse;
4862 int fuse_start_cleanup_thread(struct fuse *f)
4870 void fuse_stop_cleanup_thread(struct fuse *f)
4882 struct fuse *fuse_new_31(struct fuse_args *args,
4886 struct fuse *f;
4891 f = (struct fuse *) calloc(1, sizeof(struct fuse));
4893 fuse_log(FUSE_LOG_ERR, "fuse: failed to allocate fuse object\n");
4988 fuse_log(FUSE_LOG_ERR, "fuse: memory allocation failed\n");
5031 struct fuse *fuse_new_30(struct fuse_args *args, const struct fuse_operations *op,
5034 struct fuse *fuse_new_30(struct fuse_args *args,
5059 void fuse_destroy(struct fuse *f)
5110 int fuse_mount(struct fuse *f, const char *mountpoint) {
5115 void fuse_unmount(struct fuse *f) {