Lines Matching refs:req

56 static void hello_ll_getattr(fuse_req_t req, fuse_ino_t ino,
65 fuse_reply_err(req, ENOENT);
67 fuse_reply_attr(req, &stbuf, 1.0);
70 static void hello_ll_lookup(fuse_req_t req, fuse_ino_t parent, const char *name)
75 fuse_reply_err(req, ENOENT);
83 fuse_reply_entry(req, &e);
92 static void dirbuf_add(fuse_req_t req, struct dirbuf *b, const char *name,
97 b->size += fuse_add_direntry(req, NULL, 0, name, NULL, 0);
101 fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,
107 static int reply_buf_limited(fuse_req_t req, const char *buf, size_t bufsize,
111 return fuse_reply_buf(req, buf + off,
114 return fuse_reply_buf(req, NULL, 0);
117 static void hello_ll_readdir(fuse_req_t req, fuse_ino_t ino, size_t size,
123 fuse_reply_err(req, ENOTDIR);
128 dirbuf_add(req, &b, ".", 1);
129 dirbuf_add(req, &b, "..", 1);
130 dirbuf_add(req, &b, hello_name, 2);
131 reply_buf_limited(req, b.p, b.size, off, size);
136 static void hello_ll_open(fuse_req_t req, fuse_ino_t ino,
140 fuse_reply_err(req, EISDIR);
142 fuse_reply_err(req, EACCES);
144 fuse_reply_open(req, fi);
147 static void hello_ll_read(fuse_req_t req, fuse_ino_t ino, size_t size,
153 reply_buf_limited(req, hello_str, strlen(hello_str), off, size);
156 static void hello_ll_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
164 fuse_reply_buf(req, buf, strlen(buf));
168 fuse_reply_err(req, ENOTSUP);
172 static void hello_ll_setxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
183 fuse_reply_err(req, 0);
187 fuse_reply_err(req, ENOTSUP);
191 static void hello_ll_removexattr(fuse_req_t req, fuse_ino_t ino, const char *name)
196 fuse_reply_err(req, 0);
200 fuse_reply_err(req, ENOTSUP);