Lines Matching refs:request
35 if (buffer->request.header.nodeid != FUSE_ROOT_ID) { in HandleLookUp()
37 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); in HandleLookUp()
41 const size_t filename_length = buffer->request.header.len - sizeof(fuse_in_header); in HandleLookUp()
42 if (buffer->request.lookup_name[filename_length - 1] != 0) { in HandleLookUp()
44 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); in HandleLookUp()
47 const uint64_t inode = static_cast<uint64_t>(atol(buffer->request.lookup_name)); in HandleLookUp()
50 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); in HandleLookUp()
53 callback->OnLookup(buffer->request.header.unique, inode); in HandleLookUp()
58 if (buffer->request.header.nodeid == FUSE_ROOT_ID) { in HandleGetAttr()
59 return loop->ReplyGetAttr(buffer->request.header.unique, buffer->request.header.nodeid, 0, in HandleGetAttr()
62 callback->OnGetAttr(buffer->request.header.unique, buffer->request.header.nodeid); in HandleGetAttr()
68 if (buffer->request.read_in.size > kFuseMaxRead) { in HandleRead()
69 return loop->ReplySimple(buffer->request.header.unique, -EINVAL); in HandleRead()
72 callback->OnRead(buffer->request.header.unique, buffer->request.header.nodeid, in HandleRead()
73 buffer->request.read_in.offset, buffer->request.read_in.size); in HandleRead()
78 if (buffer->request.write_in.size > kFuseMaxWrite) { in HandleWrite()
79 return loop->ReplySimple(buffer->request.header.unique, -EINVAL); in HandleWrite()
82 callback->OnWrite(buffer->request.header.unique, buffer->request.header.nodeid, in HandleWrite()
83 buffer->request.write_in.offset, buffer->request.write_in.size, in HandleWrite()
84 buffer->request.write_data); in HandleWrite()
89 if (!buffer->request.Read(fd)) { in HandleMessage()
93 const uint32_t opcode = buffer->request.header.opcode; in HandleMessage()
107 callback->OnOpen(buffer->request.header.unique, buffer->request.header.nodeid); in HandleMessage()
117 callback->OnRelease(buffer->request.header.unique, buffer->request.header.nodeid); in HandleMessage()
121 callback->OnFsync(buffer->request.header.unique, buffer->request.header.nodeid); in HandleMessage()