Home | History | Annotate | Download | only in recovery

Lines Matching refs:hdr

100     struct fuse_out_header hdr;
104 hdr.len = len + sizeof(hdr);
105 hdr.error = 0;
106 hdr.unique = unique;
108 vec[0].iov_base = &hdr;
109 vec[0].iov_len = sizeof(hdr);
119 static int handle_init(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) {
155 fuse_reply(fd, hdr->unique, &out, fuse_struct_size);
174 static int handle_getattr(void* /* data */, struct fuse_data* fd, const struct fuse_in_header* hdr) {
179 if (hdr->nodeid == FUSE_ROOT_ID) {
180 fill_attr(&(out.attr), fd, hdr->nodeid, 4096, S_IFDIR | 0555);
181 } else if (hdr->nodeid == PACKAGE_FILE_ID) {
183 } else if (hdr->nodeid == EXIT_FLAG_ID) {
189 fuse_reply(fd, hdr->unique, &out, sizeof(out));
190 return (hdr->nodeid == EXIT_FLAG_ID) ? NO_STATUS_EXIT : NO_STATUS;
194 const struct fuse_in_header* hdr) {
214 fuse_reply(fd, hdr->unique, &out, sizeof(out));
218 static int handle_open(void* /* data */, struct fuse_data* fd, const struct fuse_in_header* hdr) {
219 if (hdr->nodeid == EXIT_FLAG_ID) return -EPERM;
220 if (hdr->nodeid != PACKAGE_FILE_ID) return -ENOENT;
225 fuse_reply(fd, hdr->unique, &out, sizeof(out));
229 static int handle_flush(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) {
233 static int handle_release(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) {
292 static int handle_read(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) {
299 if (hdr->nodeid != PACKAGE_FILE_ID) return -ENOENT;
317 outhdr.unique = hdr->unique;
458 struct fuse_in_header* hdr = (struct fuse_in_header*) request_buffer;
463 switch (hdr->opcode) {
465 result = handle_init(data, &fd, hdr);
469 result = handle_lookup(data, &fd, hdr);
473 result = handle_getattr(data, &fd, hdr);
477 result = handle_open(data, &fd, hdr);
481 result = handle_read(data, &fd, hdr);
485 hdr);
489 result = handle_release(data, &fd, hdr);
493 fprintf(stderr, "unknown fuse request opcode %d\n", hdr->opcode);
506 outhdr.unique = hdr->unique;