Lines Matching refs:req

54  * - don't forget that FORGET can forget multiple references (req->nlookup)
535 const struct fuse_in_header *hdr, const struct fuse_forget_in *req)
541 TRACE("[%d] FORGET #%lld @ %llx (%s)\n", handler->token, req->nlookup,
544 __u64 n = req->nlookup;
554 const struct fuse_in_header *hdr, const struct fuse_getattr_in *req)
562 req->getattr_flags, req->fh, hdr->nodeid, node ? node->name : "?");
572 const struct fuse_in_header *hdr, const struct fuse_setattr_in *req)
581 req->fh, req->valid, hdr->nodeid, node ? node->name : "?");
591 if ((req->valid & FATTR_SIZE) && truncate(path, req->size) < 0) {
601 if (req->valid & (FATTR_ATIME | FATTR_MTIME)) {
604 if (req->valid & FATTR_ATIME) {
605 if (req->valid & FATTR_ATIME_NOW) {
608 times[0].tv_sec = req->atime;
609 times[0].tv_nsec = req->atimensec;
612 if (req->valid & FATTR_MTIME) {
613 if (req->valid & FATTR_MTIME_NOW) {
616 times[1].tv_sec = req->mtime;
617 times[1].tv_nsec = req->mtimensec;
630 const struct fuse_in_header* hdr, const struct fuse_mknod_in* req, const char* name)
641 name, req->mode, hdr->nodeid, parent_node ? parent_node->name : "?");
648 __u32 mode = (req->mode & (~0777)) | 0664;
649 if (mknod(child_path, mode, req->rdev) < 0) {
656 const struct fuse_in_header* hdr, const struct fuse_mkdir_in* req, const char* name)
667 name, req->mode, hdr->nodeid, parent_node ? parent_node->name : "?");
674 __u32 mode = (req->mode & (~0777)) | 0775;
730 const struct fuse_in_header* hdr, const struct fuse_rename_in* req,
746 new_parent_node = lookup_node_and_path_by_id_locked(fuse, req->newdir,
751 req->newdir, new_parent_node ? new_parent_node->name : "?");
802 const struct fuse_in_header* hdr, const struct fuse_open_in* req)
812 req->flags, hdr->nodeid, node ? node->name : "?");
823 h->fd = open(path, req->flags);
836 const struct fuse_in_header* hdr, const struct fuse_read_in* req)
838 struct handle *h = id_to_ptr(req->fh);
840 __u32 size = req->size;
841 __u64 offset = req->offset;
844 /* Don't access any other fields of hdr or req beyond this point, the read buffer
862 const struct fuse_in_header* hdr, const struct fuse_write_in* req,
866 struct handle *h = id_to_ptr(req->fh);
870 h, h->fd, req->size, req->offset);
871 res = pwrite64(h->fd, buffer, req->size, req->offset);
912 const struct fuse_in_header* hdr, const struct fuse_release_in* req)
914 struct handle *h = id_to_ptr(req->fh);
923 const struct fuse_in_header* hdr, const struct fuse_fsync_in* req)
925 int is_data_sync = req->fsync_flags & 1;
926 struct handle *h = id_to_ptr(req->fh);
946 const struct fuse_in_header* hdr, const struct fuse_open_in* req)
978 const struct fuse_in_header* hdr, const struct fuse_read_in* req)
983 struct dirhandle *h = id_to_ptr(req->fh);
986 if (req->offset == 0) {
997 fde->off = req->offset + 1;
1007 const struct fuse_in_header* hdr, const struct fuse_release_in* req)
1009 struct dirhandle *h = id_to_ptr(req->fh);
1018 const struct fuse_in_header* hdr, const struct fuse_init_in* req)
1023 handler->token, req->major, req->minor, req->max_readahead, req->flags);
1026 out.max_readahead = req->max_readahead;
1045 const struct fuse_forget_in *req = data;
1046 return handle_forget(fuse, handler, hdr, req);
1050 const struct fuse_getattr_in *req = data;
1051 return handle_getattr(fuse, handler, hdr, req);
1055 const struct fuse_setattr_in *req = data;
1056 return handle_setattr(fuse, handler, hdr, req);
1062 const struct fuse_mknod_in *req = data;
1063 const char *name = ((const char*) data) + sizeof(*req);
1064 return handle_mknod(fuse, handler, hdr, req, name);
1068 const struct fuse_mkdir_in *req = data;
1069 const char *name = ((const char*) data) + sizeof(*req);
1070 return handle_mkdir(fuse, handler, hdr, req, name);
1084 const struct fuse_rename_in *req = data;
1085 const char *old_name = ((const char*) data) + sizeof(*req);
1087 return handle_rename(fuse, handler, hdr, req, old_name, new_name);
1092 const struct fuse_open_in *req = data;
1093 return handle_open(fuse, handler, hdr, req);
1097 const struct fuse_read_in *req = data;
1098 return handle_read(fuse, handler, hdr, req);
1102 const struct fuse_write_in *req = data;
1103 const void* buffer = (const __u8*)data + sizeof(*req);
1104 return handle_write(fuse, handler, hdr, req, buffer);
1112 const struct fuse_release_in *req = data;
1113 return handle_release(fuse, handler, hdr, req);
1117 const struct fuse_fsync_in *req = data;
1118 return handle_fsync(fuse, handler, hdr, req);
1130 const struct fuse_open_in *req = data;
1131 return handle_opendir(fuse, handler, hdr, req);
1135 const struct fuse_read_in *req = data;
1136 return handle_readdir(fuse, handler, hdr, req);
1140 const struct fuse_release_in *req = data;
1141 return handle_releasedir(fuse, handler, hdr, req);
1146 const struct fuse_init_in *req = data;
1147 return handle_init(fuse, handler, hdr, req);