Lines Matching refs:req
66 static void hello_ll_getattr(fuse_req_t req, fuse_ino_t ino,
75 fuse_reply_err(req, ENOENT);
77 fuse_reply_attr(req, &stbuf, 1.0);
80 static void hello_ll_lookup(fuse_req_t req, fuse_ino_t parent, const char *name)
85 fuse_reply_err(req, ENOENT);
93 fuse_reply_entry(req, &e);
102 static void dirbuf_add(fuse_req_t req, struct dirbuf *b, const char *name,
107 b->size += fuse_add_direntry(req, NULL, 0, name, NULL, 0);
111 fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,
117 static int reply_buf_limited(fuse_req_t req, const char *buf, size_t bufsize,
121 return fuse_reply_buf(req, buf + off,
124 return fuse_reply_buf(req, NULL, 0);
127 static void hello_ll_readdir(fuse_req_t req, fuse_ino_t ino, size_t size,
133 fuse_reply_err(req, ENOTDIR);
138 dirbuf_add(req, &b, ".", 1);
139 dirbuf_add(req, &b, "..", 1);
140 dirbuf_add(req, &b, hello_name, 2);
141 reply_buf_limited(req, b.p, b.size, off, size);
146 static void hello_ll_open(fuse_req_t req, fuse_ino_t ino,
150 fuse_reply_err(req, EISDIR);
152 fuse_reply_err(req, EACCES);
154 fuse_reply_open(req, fi);
157 static void hello_ll_read(fuse_req_t req, fuse_ino_t ino, size_t size,
163 reply_buf_limited(req, hello_str, strlen(hello_str), off, size);