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

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
78 const mode_t mode = S_IFDIR | 0755; in TEST_F() local
83 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
85 out.body.entry.attr.mode = mode; in TEST_F()
94 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
96 out.body.entry.attr.mode = mode; in TEST_F()
104 ASSERT_EQ(-1, fhstat(&fhp, &sb)); in TEST_F()
116 const mode_t mode = S_IFDIR | 0755; in TEST_F() local
120 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
122 out.body.entry.attr.mode = mode; in TEST_F()
131 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
133 out.body.entry.attr.mode = mode; in TEST_F()
144 EXPECT_EQ(mode, sb.st_mode); in TEST_F()
155 const mode_t mode = S_IFDIR | 0755; in TEST_F() local
158 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
160 out.body.entry.attr.mode = mode; in TEST_F()
181 const mode_t mode = S_IFDIR | 0755; in TEST_F() local
184 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
186 out.body.entry.attr.mode = mode; in TEST_F()
195 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
197 out.body.entry.attr.mode = mode; in TEST_F()
217 * If the server doesn't set FUSE_EXPORT_SUPPORT, then we can't do NFS-style
226 const mode_t mode = S_IFDIR | 0755; in TEST_F() local
229 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
231 out.body.entry.attr.mode = mode; in TEST_F()
238 ASSERT_EQ(-1, getfh(FULLPATH, &fhp)); in TEST_F()
242 /* FreeBSD's fid struct doesn't have enough space for 64-bit generations */
251 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
253 out.body.entry.attr.mode = S_IFDIR | 0755; in TEST_F()
273 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
275 out.body.entry.attr.mode = S_IFDIR | 0755; in TEST_F()
287 * This is how a userspace nfs server like nfs-ganesha or unfs3 would call
288 * readdir. The in-kernel NFS server never does any equivalent of open. I
297 mode_t mode = S_IFDIR | 0755; in TEST_F() local
304 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
306 out.body.entry.attr.mode = mode; in TEST_F()
314 .WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()
316 out.body.entry.attr.mode = mode; in TEST_F()
326 ResultOf([=](auto in) { in TEST_F()
332 ).WillOnce(Invoke(ReturnImmediate([=](auto in __unused, auto& out) { in TEST_F()