Lines Matching refs:req
419 struct fuse_forget_in *req = data; in handle_fuse_request() local
420 TRACE("FORGET %llx (%s) #%lld\n", hdr->nodeid, node->name, req->nlookup); in handle_fuse_request()
422 while (req->nlookup--) in handle_fuse_request()
427 struct fuse_getattr_in *req = data; in handle_fuse_request() local
430 TRACE("GETATTR flags=%x fh=%llx\n",req->getattr_flags, req->fh); in handle_fuse_request()
440 struct fuse_setattr_in *req = data; in handle_fuse_request() local
443 req->fh, hdr->nodeid, req->valid); in handle_fuse_request()
456 struct fuse_mknod_in *req = data; in handle_fuse_request() local
458 char *name = ((char*) data) + sizeof(*req); in handle_fuse_request()
463 req->mode = (req->mode & (~0777)) | 0664; in handle_fuse_request()
464 res = mknod(path, req->mode, req->rdev); /* XXX perm?*/ in handle_fuse_request()
473 struct fuse_mkdir_in *req = data; in handle_fuse_request() local
476 char *name = ((char*) data) + sizeof(*req); in handle_fuse_request()
478 TRACE("MKDIR %s @ %llx 0%o\n", name, hdr->nodeid, req->mode); in handle_fuse_request()
481 req->mode = (req->mode & (~0777)) | 0775; in handle_fuse_request()
482 res = mkdir(path, req->mode); in handle_fuse_request()
509 struct fuse_rename_in *req = data; in handle_fuse_request() local
510 char *oldname = ((char*) data) + sizeof(*req); in handle_fuse_request()
517 newnode = lookup_by_inode(fuse, req->newdir); in handle_fuse_request()
532 struct fuse_open_in *req = data; in handle_fuse_request() local
544 TRACE("OPEN %llx '%s' 0%o fh=%p\n", hdr->nodeid, path, req->flags, h); in handle_fuse_request()
545 h->fd = open(path, req->flags); in handle_fuse_request()
560 struct fuse_read_in *req = data; in handle_fuse_request() local
561 struct handle *h = id_to_ptr(req->fh); in handle_fuse_request()
563 TRACE("READ %p(%d) %u@%llu\n", h, h->fd, req->size, req->offset); in handle_fuse_request()
564 if (req->size > sizeof(buffer)) { in handle_fuse_request()
568 res = pread(h->fd, buffer, req->size, req->offset); in handle_fuse_request()
577 struct fuse_write_in *req = data; in handle_fuse_request() local
579 struct handle *h = id_to_ptr(req->fh); in handle_fuse_request()
581 TRACE("WRITE %p(%d) %u@%llu\n", h, h->fd, req->size, req->offset); in handle_fuse_request()
582 res = pwrite(h->fd, ((char*) data) + sizeof(*req), req->size, req->offset); in handle_fuse_request()
616 struct fuse_release_in *req = data; in handle_fuse_request() local
617 struct handle *h = id_to_ptr(req->fh); in handle_fuse_request()
633 struct fuse_open_in *req = data; in handle_fuse_request() local
658 struct fuse_read_in *req = data; in handle_fuse_request() local
662 struct dirhandle *h = id_to_ptr(req->fh); in handle_fuse_request()
679 struct fuse_release_in *req = data; in handle_fuse_request() local
680 struct dirhandle *h = id_to_ptr(req->fh); in handle_fuse_request()
689 struct fuse_init_in *req = data; in handle_fuse_request() local
693 req->major, req->minor, req->max_readahead, req->flags); in handle_fuse_request()
697 out.max_readahead = req->max_readahead; in handle_fuse_request()
723 unsigned char req[256 * 1024 + 128]; in handle_fuse_requests() local
727 len = read(fuse->fd, req, 8192); in handle_fuse_requests()
734 handle_fuse_request(fuse, (void*) req, (void*) (req + sizeof(struct fuse_in_header)), len); in handle_fuse_requests()