Lines Matching +full:auto +full:- +full:mode

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
77 * If setattr returns a non-zero cache timeout, then subsequent VOP_GETATTRs
89 .WillRepeatedly(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
91 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
97 ResultOf([](auto in) { in TEST_F()
102 ).WillOnce(Invoke(ReturnImmediate([](auto in __unused, auto& out) { in TEST_F()
105 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F()
109 ResultOf([](auto in) { in TEST_F()
123 /* Change the mode of a file */
133 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
135 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F()
140 ResultOf([](auto in) { in TEST_F()
145 in.body.setattr.mode == newmode); in TEST_F()
148 ).WillOnce(Invoke(ReturnImmediate([](auto in __unused, auto& out) { in TEST_F()
151 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F()
157 * Chmod a multiply-linked file with cached attributes. Check that both files'
172 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
174 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F()
182 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
184 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F()
192 ResultOf([](auto in) { in TEST_F()
197 in.body.setattr.mode == newmode); in TEST_F()
200 ).WillOnce(Invoke(ReturnImmediate([](auto in __unused, auto& out) { in TEST_F()
203 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F()
232 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
234 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
241 ResultOf([](auto in) { in TEST_F()
250 ).WillOnce(Invoke(ReturnImmediate([](auto in __unused, auto& out) { in TEST_F()
253 out.body.attr.attr.mode = S_IFREG | 0644; in TEST_F()
274 .WillOnce(Invoke(ReturnImmediate([=](auto in, auto& out) { in TEST_F()
276 out.body.entry.attr.mode = S_IFREG | 0777; in TEST_F()
283 ResultOf([](auto in) { in TEST_F()
293 /* Change the mode of an open file, by its file descriptor */
304 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
306 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F()
312 ResultOf([=](auto in) { in TEST_F()
317 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
323 ResultOf([=](auto in) { in TEST_F()
328 in.body.setattr.mode == newmode); in TEST_F()
331 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
334 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F()
355 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
357 out.body.entry.attr.mode = S_IFREG | 0755; in TEST_F()
364 ResultOf([=](auto in) { in TEST_F()
369 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
376 ResultOf([=](auto in) { in TEST_F()
384 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
387 out.body.attr.attr.mode = S_IFREG | 0755; in TEST_F()
406 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
408 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
414 ResultOf([](auto in) { in TEST_F()
422 ).WillOnce(Invoke(ReturnImmediate([](auto in __unused, auto& out) { in TEST_F()
425 out.body.attr.attr.mode = S_IFREG | 0644; in TEST_F()
437 * fsx -WR -P /tmp -S10 fsx.bin
440 * fsx -WR -P /tmp -S18 -n fsx.bin
442 * $> /path/to/libfuse/build/example/passthrough -d /tmp/mnt
445 * $> truncate -s 1k randfile && truncate -s 192k randfile
459 off_t r1_size = w0_size - trunc0_size; in TEST_F()
462 mode_t mode = S_IFREG | 0644; in TEST_F() local
474 expect_lookup(RELPATH, ino, mode, 0, 1); in TEST_F()
477 ResultOf([=](auto in) { in TEST_F()
482 ).WillRepeatedly(Invoke(ReturnImmediate([&](auto i __unused, auto& out) { in TEST_F()
485 out.body.attr.attr.mode = mode; in TEST_F()
489 ResultOf([=](auto in) { in TEST_F()
493 ).WillRepeatedly(Invoke(ReturnImmediate([&](auto in, auto& out) { in TEST_F()
502 ResultOf([=](auto in) { in TEST_F()
508 ).WillRepeatedly(Invoke(ReturnImmediate([&](auto in, auto& out) { in TEST_F()
509 auto trunc_size = in.body.setattr.size; in TEST_F()
512 out.body.attr.attr.mode = mode; in TEST_F()
518 ResultOf([=](auto in) { in TEST_F()
522 ).WillRepeatedly(Invoke(ReturnImmediate([&](auto in, auto& out) { in TEST_F()
523 auto osize = std::min( in TEST_F()
524 static_cast<uint64_t>(cur_size) - in.body.read.offset, in TEST_F()
575 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
577 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
587 EXPECT_EQ(-1, truncate(FULLPATH, newsize)); in TEST_F()
607 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
609 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
619 ResultOf([=](auto in) { in TEST_F()
634 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
637 out.body.attr.attr.mode = S_IFREG | 0644; in TEST_F()
662 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
664 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
674 ResultOf([=](auto in) { in TEST_F()
685 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
688 out.body.attr.attr.mode = S_IFREG | 0644; in TEST_F()
724 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
726 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
737 ResultOf([=](auto in) { in TEST_F()
745 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
748 out.body.attr.attr.mode = S_IFREG | 0644; in TEST_F()
782 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
784 out.body.entry.attr.mode = S_IFREG | 0777; in TEST_F()
790 ResultOf([](auto in) { in TEST_F()
795 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
798 out.body.attr.attr.mode = S_IFDIR | 0777; // Changed! in TEST_F()
804 EXPECT_NE(0, chown(FULLPATH, newuser, -1)); in TEST_F()
811 /* On a read-only mount, no attributes may be changed */
821 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
823 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F()
827 ASSERT_EQ(-1, chmod(FULLPATH, newmode)); in TEST_F()
831 /* Change the mode of a file */
841 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
843 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F()
848 ResultOf([](auto in) { in TEST_F()
853 in.body.setattr.mode == newmode); in TEST_F()
856 ).WillOnce(Invoke(ReturnImmediate([](auto in __unused, auto& out) { in TEST_F()
859 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F()