Lines Matching full:body

138 		out0->body.entry.nodeid = 0;  in ReturnNegativeCache()
141 out0->body.entry.entry_valid = entry_valid->tv_sec; in ReturnNegativeCache()
142 out0->body.entry.entry_valid_nsec = entry_valid->tv_nsec; in ReturnNegativeCache()
178 printf(" mask=%#x", in.body.access.mask); in debug_request()
182 in.body.bmap.block, in.body.bmap.blocksize); in debug_request()
187 in.body.copy_file_range.off_in, in debug_request()
188 in.body.copy_file_range.nodeid_out, in debug_request()
189 in.body.copy_file_range.off_out, in debug_request()
190 in.body.copy_file_range.len); in debug_request()
194 in.body.copy_file_range.fh_in, in debug_request()
195 in.body.copy_file_range.fh_out, in debug_request()
196 in.body.copy_file_range.flags); in debug_request()
200 name = (const char*)in.body.bytes + in debug_request()
203 name = (const char*)in.body.bytes + in debug_request()
206 in.body.open.flags, name); in debug_request()
211 in.body.fallocate.fh, in debug_request()
212 in.body.fallocate.offset, in debug_request()
213 in.body.fallocate.length, in debug_request()
214 in.body.fallocate.mode); in debug_request()
218 in.body.flush.fh, in debug_request()
219 in.body.flush.lock_owner); in debug_request()
222 printf(" nlookup=%" PRIu64, in.body.forget.nlookup); in debug_request()
225 printf(" flags=%#x", in.body.fsync.fsync_flags); in debug_request()
228 printf(" flags=%#x", in.body.fsyncdir.fsync_flags); in debug_request()
233 in.body.getlk.fh, in debug_request()
234 in.body.getlk.lk.type, in debug_request()
235 in.body.getlk.lk.pid); in debug_request()
238 in.body.getlk.lk.start, in debug_request()
239 in.body.getlk.lk.end); in debug_request()
243 printf(" unique=%" PRIu64, in.body.interrupt.unique); in debug_request()
246 printf(" oldnodeid=%" PRIu64, in.body.link.oldnodeid); in debug_request()
249 printf(" size=%" PRIu32, in.body.listxattr.size); in debug_request()
252 printf(" %s", in.body.lookup); in debug_request()
255 switch (in.body.lseek.whence) { in debug_request()
258 in.body.lseek.offset); in debug_request()
262 in.body.lseek.offset); in debug_request()
266 in.body.lseek.whence, in.body.lseek.offset); in debug_request()
271 name = (const char*)in.body.bytes + in debug_request()
274 in.body.mkdir.mode, in.body.mkdir.umask); in debug_request()
278 name = (const char*)in.body.bytes + in debug_request()
281 name = (const char*)in.body.bytes + in debug_request()
284 in.body.mknod.mode, in.body.mknod.rdev, in debug_request()
285 in.body.mknod.umask, name); in debug_request()
288 printf(" flags=%#x", in.body.open.flags); in debug_request()
291 printf(" flags=%#x", in.body.opendir.flags); in debug_request()
295 in.body.read.offset, in debug_request()
296 in.body.read.size); in debug_request()
298 printf(" flags=%#x", in.body.read.flags); in debug_request()
302 in.body.readdir.fh, in.body.readdir.offset, in debug_request()
303 in.body.readdir.size); in debug_request()
307 in.body.release.fh, in debug_request()
308 in.body.release.flags, in debug_request()
309 in.body.release.lock_owner); in debug_request()
313 const char *src = (const char*)in.body.bytes + in debug_request()
317 src, in.body.rename.newdir, dst); in debug_request()
322 printf(" valid=%#x", in.body.setattr.valid); in debug_request()
325 if (in.body.setattr.valid & FATTR_MODE) in debug_request()
326 printf(" mode=%#o", in.body.setattr.mode); in debug_request()
327 if (in.body.setattr.valid & FATTR_UID) in debug_request()
328 printf(" uid=%u", in.body.setattr.uid); in debug_request()
329 if (in.body.setattr.valid & FATTR_GID) in debug_request()
330 printf(" gid=%u", in.body.setattr.gid); in debug_request()
331 if (in.body.setattr.valid & FATTR_SIZE) in debug_request()
332 printf(" size=%" PRIu64, in.body.setattr.size); in debug_request()
333 if (in.body.setattr.valid & FATTR_ATIME) in debug_request()
335 in.body.setattr.atime, in debug_request()
336 in.body.setattr.atimensec); in debug_request()
337 if (in.body.setattr.valid & FATTR_MTIME) in debug_request()
339 in.body.setattr.mtime, in debug_request()
340 in.body.setattr.mtimensec); in debug_request()
341 if (in.body.setattr.valid & FATTR_FH) in debug_request()
342 printf(" fh=%" PRIu64 "", in.body.setattr.fh); in debug_request()
347 in.body.setlk.fh, in.body.setlk.owner, in debug_request()
348 in.body.setlk.lk.type, in debug_request()
349 in.body.setlk.lk.pid); in debug_request()
352 in.body.setlk.lk.start, in debug_request()
353 in.body.setlk.lk.end); in debug_request()
361 name = (const char*)in.body.bytes + in debug_request()
369 in.body.write.fh, in debug_request()
370 in.body.write.offset, in.body.write.size, in debug_request()
371 in.body.write.write_flags); in debug_request()
373 printf(" flags=%#x", in.body.write.flags); in debug_request()
395 name = (const char*)out.body.bytes + in debug_response()
398 out.body.inval_entry.parent, name); in debug_response()
403 out.body.inval_inode.ino, in debug_response()
404 out.body.inval_inode.off, in debug_response()
405 out.body.inval_inode.len); in debug_response()
410 out.body.store.nodeid, in debug_response()
411 out.body.store.offset, in debug_response()
412 out.body.store.size); in debug_response()
567 EXPECT_EQ(inlen, fih + sizeof(in.body.forget)); in audit_request()
571 EXPECT_EQ(inlen, fih + sizeof(in.body.getattr)); in audit_request()
575 EXPECT_EQ(inlen, fih + sizeof(in.body.setattr)); in audit_request()
579 EXPECT_EQ(inlen, fih) << "Unexpected request body"; in audit_request()
586 s = sizeof(in.body.mknod); in audit_request()
589 EXPECT_GE(inlen, fih + s) << "Missing request body"; in audit_request()
595 EXPECT_GE(inlen, fih + sizeof(in.body.mkdir)) << in audit_request()
596 "Missing request body"; in audit_request()
597 EXPECT_GT(inlen, fih + sizeof(in.body.mkdir)) << in audit_request()
602 EXPECT_GE(inlen, fih + sizeof(in.body.rename)) << in audit_request()
603 "Missing request body"; in audit_request()
604 EXPECT_GT(inlen, fih + sizeof(in.body.rename)) << in audit_request()
609 EXPECT_GE(inlen, fih + sizeof(in.body.link)) << in audit_request()
610 "Missing request body"; in audit_request()
611 EXPECT_GT(inlen, fih + sizeof(in.body.link)) << in audit_request()
616 EXPECT_EQ(inlen, fih + sizeof(in.body.open)); in audit_request()
620 EXPECT_EQ(inlen, fih + sizeof(in.body.read)); in audit_request()
628 s = sizeof(in.body.write); in audit_request()
632 EXPECT_GE(inlen, fih + s) << "Missing request body"; in audit_request()
633 EXPECT_EQ((size_t)buflen, fih + s + in.body.write.size); in audit_request()
642 EXPECT_EQ(inlen, fih + sizeof(in.body.release)); in audit_request()
647 EXPECT_EQ(inlen, fih + sizeof(in.body.fsync)); in audit_request()
651 EXPECT_GE(inlen, fih + sizeof(in.body.setxattr)) << in audit_request()
652 "Missing request body"; in audit_request()
653 EXPECT_GT(inlen, fih + sizeof(in.body.setxattr)) << in audit_request()
658 EXPECT_GE(inlen, fih + sizeof(in.body.getxattr)) << in audit_request()
659 "Missing request body"; in audit_request()
660 EXPECT_GT(inlen, fih + sizeof(in.body.getxattr)) << in audit_request()
665 EXPECT_EQ(inlen, fih + sizeof(in.body.listxattr)); in audit_request()
673 EXPECT_EQ(inlen, fih + sizeof(in.body.flush)); in audit_request()
677 EXPECT_EQ(inlen, fih + sizeof(in.body.init)); in audit_request()
681 EXPECT_EQ(inlen, fih + sizeof(in.body.opendir)); in audit_request()
685 EXPECT_EQ(inlen, fih + sizeof(in.body.readdir)); in audit_request()
689 EXPECT_EQ(inlen, fih + sizeof(in.body.releasedir)); in audit_request()
693 EXPECT_EQ(inlen, fih + sizeof(in.body.getlk)); in audit_request()
698 EXPECT_EQ(inlen, fih + sizeof(in.body.setlk)); in audit_request()
702 EXPECT_EQ(inlen, fih + sizeof(in.body.access)); in audit_request()
706 EXPECT_GE(inlen, fih + sizeof(in.body.create)) << in audit_request()
707 "Missing request body"; in audit_request()
708 EXPECT_GT(inlen, fih + sizeof(in.body.create)) << in audit_request()
713 EXPECT_EQ(inlen, fih + sizeof(in.body.interrupt)); in audit_request()
717 EXPECT_EQ(inlen, fih + sizeof(in.body.fallocate)); in audit_request()
721 EXPECT_EQ(inlen, fih + sizeof(in.body.bmap)); in audit_request()
725 EXPECT_EQ(inlen, fih + sizeof(in.body.lseek)); in audit_request()
729 EXPECT_EQ(inlen, fih + sizeof(in.body.copy_file_range)); in audit_request()
730 EXPECT_EQ(0ul, in.body.copy_file_range.flags); in audit_request()
762 out->body.init.major = FUSE_KERNEL_VERSION; in init()
763 out->body.init.minor = m_kernel_minor_version;; in init()
764 out->body.init.flags = in->body.init.flags & flags; in init()
765 out->body.init.max_write = m_maxwrite; in init()
766 out->body.init.max_readahead = m_maxreadahead; in init()
771 out->body.init.time_gran = m_time_gran; in init()
829 out->body.inval_entry.parent = parent; in notify_inval_entry()
830 out->body.inval_entry.namelen = namelen; in notify_inval_entry()
831 strlcpy((char*)&out->body.bytes + sizeof(out->body.inval_entry), in notify_inval_entry()
832 name, sizeof(out->body.bytes) - sizeof(out->body.inval_entry)); in notify_inval_entry()
833 out->header.len = sizeof(out->header) + sizeof(out->body.inval_entry) + in notify_inval_entry()
846 out->body.inval_inode.ino = ino; in notify_inval_inode()
847 out->body.inval_inode.off = off; in notify_inval_inode()
848 out->body.inval_inode.len = len; in notify_inval_inode()
849 out->header.len = sizeof(out->header) + sizeof(out->body.inval_inode); in notify_inval_inode()
861 out->body.store.nodeid = ino; in notify_store()
862 out->body.store.offset = off; in notify_store()
863 out->body.store.size = size; in notify_store()
864 bcopy(data, (char*)&out->body.bytes + sizeof(out->body.store), size); in notify_store()
865 out->header.len = sizeof(out->header) + sizeof(out->body.store) + size; in notify_store()