Lines Matching full:body

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