Lines Matching refs:in

9  * Redistribution and use in source and binary forms, with or without
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
54 * The default max_write is set to this formula in libfuse, though
55 * individual filesystems can lower it. The "- 4096" was added in
163 * FUSE_ACCESS is called almost universally. Expecting it in
168 * googlemock evaluates expectations in LIFO order.
171 ResultOf([=](auto in) {
172 return (in.header.opcode == FUSE_ACCESS);
182 * googlemock evaluates expectations in LIFO order.
185 ResultOf([=](auto in) {
186 return (in.header.opcode == FUSE_BMAP);
200 ResultOf([=](auto in) {
201 return (in.header.opcode == FUSE_ACCESS &&
202 in.header.nodeid == ino &&
203 in.body.access.mask == access_mode);
213 ResultOf([=](auto in) {
214 return (in.header.opcode == FUSE_DESTROY);
217 ).WillOnce(Invoke(ReturnImmediate([=](auto in, auto& out) {
220 out.header.unique = in.header.unique;
230 ResultOf([=](auto in) {
231 return (in.header.opcode == FUSE_FALLOCATE &&
232 in.header.nodeid == ino &&
233 in.body.fallocate.offset == offset &&
234 in.body.fallocate.length == length &&
235 in.body.fallocate.mode == mode);
246 ResultOf([=](auto in) {
247 return (in.header.opcode == FUSE_FLUSH &&
248 in.header.nodeid == ino);
259 ResultOf([=](auto in) {
260 return (in.header.opcode == FUSE_FORGET &&
261 in.header.nodeid == ino &&
262 in.body.forget.nlookup == nlookup);
265 ).WillOnce(Invoke([=](auto in __unused, auto &out __unused) {
275 ResultOf([=](auto in) {
276 return (in.header.opcode == FUSE_GETATTR &&
277 in.header.nodeid == ino);
292 ResultOf([=](auto in) {
293 const char *a = (const char*)in.body.bytes +
295 return (in.header.opcode == FUSE_GETXATTR &&
296 in.header.nodeid == ino &&
309 ReturnImmediate([=](auto in __unused, auto& out) {
327 ReturnImmediate([=](auto in __unused, auto& out) {
342 ResultOf([=](auto in) {
343 return (in.header.opcode == FUSE_OPEN &&
344 in.header.nodeid == ino);
349 ReturnImmediate([=](auto in __unused, auto& out) {
361 ResultOf([](auto in) {
362 return (in.header.opcode == FUSE_STATFS);
371 ResultOf([=](auto in) {
372 return (in.header.opcode == FUSE_OPENDIR &&
373 in.header.nodeid == ino);
376 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {
387 ResultOf([=](auto in) {
388 return (in.header.opcode == FUSE_READ &&
389 in.header.nodeid == ino &&
390 in.body.read.fh == fh &&
391 in.body.read.offset == offset &&
392 in.body.read.size == isize &&
394 (in.body.read.flags == O_RDONLY ||
395 in.body.read.flags == O_RDWR)
396 : in.body.read.flags == (uint32_t)flags));
399 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {
410 ResultOf([=](auto in) {
411 return (in.header.opcode == FUSE_READDIR &&
412 in.header.nodeid == ino &&
413 in.body.readdir.fh == FH &&
414 in.body.readdir.offset == off);
417 ).WillRepeatedly(Invoke(ReturnImmediate([=](auto in, auto& out) {
442 if (out.header.len + entsize > in.body.read.size) {
443 printf("Overflow in readdir expectation: i=%d\n"
459 ResultOf([=](auto in) {
460 return (in.header.opcode == FUSE_RELEASE &&
461 in.header.nodeid == ino &&
462 in.body.release.fh == fh);
471 ResultOf([=](auto in) {
472 return (in.header.opcode == FUSE_RELEASEDIR &&
473 in.header.nodeid == ino &&
474 in.body.release.fh == FH);
483 ResultOf([=](auto in) {
484 return (in.header.opcode == FUSE_UNLINK &&
485 0 == strcmp(path, in.body.unlink) &&
486 in.header.nodeid == parent);
497 ResultOf([=](auto in) {
498 const char *buf = (const char*)in.body.bytes +
501 uint32_t wf = in.body.write.write_flags;
503 assert(isize <= sizeof(in.body.bytes) -
508 pid_ok = (pid_t)in.header.pid == getpid();
510 return (in.header.opcode == FUSE_WRITE &&
511 in.header.nodeid == ino &&
512 in.body.write.fh == FH &&
513 in.body.write.offset == offset &&
514 in.body.write.size == isize &&
518 (in.body.write.flags == O_WRONLY ||
519 in.body.write.flags == O_RDWR) &&
523 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {
533 ResultOf([=](auto in) {
534 const char *buf = (const char*)in.body.bytes +
536 bool pid_ok = (pid_t)in.header.pid == getpid();
538 assert(isize <= sizeof(in.body.bytes) -
540 return (in.header.opcode == FUSE_WRITE &&
541 in.header.nodeid == ino &&
542 in.body.write.fh == FH &&
543 in.body.write.offset == offset &&
544 in.body.write.size == isize &&
549 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {