Lines Matching +full:auto +full:- +full:mode
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
55 * individual filesystems can lower it. The "- 4096" was added in
58 const uint32_t libfuse_max_write = 32 * getpagesize() + 0x1000 - 4096;
164 * each test case would be super-annoying. Instead, set a
171 ResultOf([=](auto in) {
185 ResultOf([=](auto in) {
200 ResultOf([=](auto in) {
213 ResultOf([=](auto in) {
217 ).WillOnce(Invoke(ReturnImmediate([=](auto in, auto& out) {
218 m_mock->m_quit = true;
221 out.header.error = -error;
227 uint32_t mode, int error, int times)
230 ResultOf([=](auto in) {
235 in.body.fallocate.mode == mode);
246 ResultOf([=](auto in) {
259 ResultOf([=](auto in) {
265 ).WillOnce(Invoke([=](auto in __unused, auto &out __unused) {
275 ResultOf([=](auto in) {
280 ).WillOnce(Invoke(ReturnImmediate([=](auto i __unused, auto& out) {
283 out.body.attr.attr.mode = S_IFREG | 0644;
292 ResultOf([=](auto in) {
303 void FuseTest::expect_lookup(const char *relpath, uint64_t ino, mode_t mode,
309 ReturnImmediate([=](auto in __unused, auto& out) {
311 out.body.entry.attr.mode = mode;
321 void FuseTest::expect_lookup_7_8(const char *relpath, uint64_t ino, mode_t mode,
327 ReturnImmediate([=](auto in __unused, auto& out) {
329 out.body.entry.attr.mode = mode;
342 ResultOf([=](auto in) {
349 ReturnImmediate([=](auto in __unused, auto& out) {
361 ResultOf([](auto in) {
366 ReturnImmediate([=](auto i __unused, auto& out) {
371 ResultOf([=](auto in) {
376 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {
387 ResultOf([=](auto in) {
393 (flags == -1 ?
399 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {
410 ResultOf([=](auto in) {
417 ).WillRepeatedly(Invoke(ReturnImmediate([=](auto in, auto& out) {
424 for (const auto& it: ents) {
427 fde->ino = it.d_fileno;
428 fde->off = it.d_off;
429 fde->type = it.d_type;
430 fde->namelen = it.d_namlen;
431 strncpy(fde->name, it.d_name, it.d_namlen);
432 entlen = FUSE_NAME_OFFSET + fde->namelen;
441 memset(fde->name + fde->namelen, 0, entsize - entlen);
459 ResultOf([=](auto in) {
471 ResultOf([=](auto in) {
483 ResultOf([=](auto in) {
497 ResultOf([=](auto in) {
503 assert(isize <= sizeof(in.body.bytes) -
523 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {
533 ResultOf([=](auto in) {
538 assert(isize <= sizeof(in.body.bytes) -
549 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) {
576 *uid = pw->pw_uid;
577 *gid = gr->gr_gid;
598 sem = (sem_t*)mmap(NULL, sizeof(*sem), mprot, mflags, -1, 0);
617 if (drop_privs && 0 != setreuid(-1, uid)) {
632 m_mock->m_child_pid = child;
656 fprintf(stderr, "Usage: %s [-v]\n\t-v increase verbosity\n", progname);
667 while ((ch = getopt(argc, argv, "v")) != -1) {