Lines Matching refs:hdr
441 struct fuse_out_header hdr;
442 hdr.len = sizeof(hdr);
443 hdr.error = err;
444 hdr.unique = unique;
445 write(fuse->fd, &hdr, sizeof(hdr));
450 struct fuse_out_header hdr;
454 hdr.len = len + sizeof(hdr);
455 hdr.error = 0;
456 hdr.unique = unique;
458 vec[0].iov_base = &hdr;
459 vec[0].iov_len = sizeof(hdr);
515 const struct fuse_in_header *hdr, const char* name)
523 parent_node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid,
525 TRACE("[%d] LOOKUP %s @ %llx (%s)\n", handler->token, name, hdr->nodeid,
533 return fuse_reply_entry(fuse, hdr->unique, parent_node, name, actual_name, child_path);
537 const struct fuse_in_header *hdr, const struct fuse_forget_in *req)
542 node = lookup_node_by_id_locked(fuse, hdr->nodeid);
544 hdr->nodeid, node ? node->name : "?");
556 const struct fuse_in_header *hdr, const struct fuse_getattr_in *req)
562 hdr->nodeid, path, sizeof(path));
564 req->getattr_flags, req->fh, hdr->nodeid, node ? node->name : "?");
570 return fuse_reply_attr(fuse, hdr->unique, hdr->nodeid, path);
574 const struct fuse_in_header *hdr, const struct fuse_setattr_in *req)
581 node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid, path, sizeof(path));
583 req->fh, req->valid, hdr->nodeid, node ? node->name : "?");
628 return fuse_reply_attr(fuse, hdr->unique, hdr->nodeid, path);
632 const struct fuse_in_header* hdr, const struct fuse_mknod_in* req, const char* name)
640 parent_node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid,
643 name, req->mode, hdr->nodeid, parent_node ? parent_node->name : "?");
654 return fuse_reply_entry(fuse, hdr->unique, parent_node, name, actual_name, child_path);
658 const struct fuse_in_header* hdr, const struct fuse_mkdir_in* req, const char* name)
666 parent_node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid,
669 name, req->mode, hdr->nodeid, parent_node ? parent_node->name : "?");
680 return fuse_reply_entry(fuse, hdr->unique, parent_node, name, actual_name, child_path);
684 const struct fuse_in_header* hdr, const char* name)
691 parent_node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid,
694 name, hdr->nodeid, parent_node ? parent_node->name : "?");
708 const struct fuse_in_header* hdr, const char* name)
715 parent_node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid,
718 name, hdr->nodeid, parent_node ? parent_node->name : "?");
732 const struct fuse_in_header* hdr, const struct fuse_rename_in* req,
746 old_parent_node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid,
752 hdr->nodeid, old_parent_node ? old_parent_node->name : "?",
804 const struct fuse_in_header* hdr, const struct fuse_open_in* req)
812 node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid, path, sizeof(path));
814 req->flags, hdr->nodeid, node ? node->name : "?");
833 fuse_reply(fuse, hdr->unique, &out, sizeof(out));
838 const struct fuse_in_header* hdr, const struct fuse_read_in* req)
841 __u64 unique = hdr->unique;
846 /* Don't access any other fields of hdr or req beyond this point, the read buffer
864 const struct fuse_in_header* hdr, const struct fuse_write_in* req,
878 fuse_reply(fuse, hdr->unique, &out, sizeof(out));
883 const struct fuse_in_header* hdr)
909 fuse_reply(fuse, hdr->unique, &out, sizeof(out));
914 const struct fuse_in_header* hdr, const struct fuse_release_in* req)
925 const struct fuse_in_header* hdr, const struct fuse_fsync_in* req)
941 const struct fuse_in_header* hdr)
948 const struct fuse_in_header* hdr, const struct fuse_open_in* req)
956 node = lookup_node_and_path_by_id_locked(fuse, hdr->nodeid, path, sizeof(path));
958 hdr->nodeid, node ? node->name : "?");
975 fuse_reply(fuse, hdr->unique, &out, sizeof(out));
980 const struct fuse_in_header* hdr, const struct fuse_read_in* req)
1003 fuse_reply(fuse, hdr->unique, fde,
1009 const struct fuse_in_header* hdr, const struct fuse_release_in* req)
1020 const struct fuse_in_header* hdr, const struct fuse_init_in* req)
1033 fuse_reply(fuse, hdr->unique, &out, sizeof(out));
1038 const struct fuse_in_header *hdr, const void *data, size_t data_len)
1040 switch (hdr->opcode) {
1043 return handle_lookup(fuse, handler, hdr, name);
1048 return handle_forget(fuse, handler, hdr, req);
1053 return handle_getattr(fuse, handler, hdr, req);
1058 return handle_setattr(fuse, handler, hdr, req);
1066 return handle_mknod(fuse, handler, hdr, req, name);
1072 return handle_mkdir(fuse, handler, hdr, req, name);
1077 return handle_unlink(fuse, handler, hdr, name);
1082 return handle_rmdir(fuse, handler, hdr, name);
1089 return handle_rename(fuse, handler, hdr, req, old_name, new_name);
1095 return handle_open(fuse, handler, hdr, req);
1100 return handle_read(fuse, handler, hdr, req);
1106 return handle_write(fuse, handler, hdr, req, buffer);
1110 return handle_statfs(fuse, handler, hdr);
1115 return handle_release(fuse, handler, hdr, req);
1120 return handle_fsync(fuse, handler, hdr, req);
1128 return handle_flush(fuse, handler, hdr);
1133 return handle_opendir(fuse, handler, hdr, req);
1138 return handle_readdir(fuse, handler, hdr, req);
1143 return handle_releasedir(fuse, handler, hdr, req);
1149 return handle_init(fuse, handler, hdr, req);
1154 handler->token, hdr->opcode, hdr->unique, hdr->nodeid);
1178 const struct fuse_in_header *hdr = (void*)handler->request_buffer;
1179 if (hdr->len != (size_t)len) {
1180 ERROR("[%d] malformed header: len=%zu, hdr->len=%u\n",
1181 handler->token, (size_t)len, hdr->len);
1187 __u64 unique = hdr->unique;
1188 int res = handle_fuse_request(fuse, handler, hdr, data, data_len);