Lines Matching refs:req
143 static void tfs_lookup(fuse_req_t req, fuse_ino_t parent,
160 fuse_reply_entry(req, &e);
164 fuse_reply_err(req, ENOENT);
167 static void tfs_forget (fuse_req_t req, fuse_ino_t ino,
169 (void) req;
174 fuse_reply_none(req);
177 static void tfs_getattr(fuse_req_t req, fuse_ino_t ino,
185 fuse_reply_err(req, ENOENT);
187 fuse_reply_attr(req, &stbuf, options.timeout);
195 static void dirbuf_add(fuse_req_t req, struct dirbuf *b, const char *name,
199 b->size += fuse_add_direntry(req, NULL, 0, name, NULL, 0);
203 fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,
209 static int reply_buf_limited(fuse_req_t req, const char *buf, size_t bufsize,
212 return fuse_reply_buf(req, buf + off,
215 return fuse_reply_buf(req, NULL, 0);
218 static void tfs_readdir(fuse_req_t req, fuse_ino_t ino, size_t size,
223 fuse_reply_err(req, ENOTDIR);
228 dirbuf_add(req, &b, file_name, file_ino);
229 reply_buf_limited(req, b.p, b.size, off, size);