@@ -203,7 +203,8 @@ struct SshfsMount : public mp::test::SftpServerTest
203
203
" /home/ubuntu/\n " },
204
204
{" id -u" , " 1000\n " },
205
205
{" id -g" , " 1000\n " },
206
- {" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -o slave -o transform_symlinks -o allow_other :\" source\" "
206
+ {" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -o slave -o transform_symlinks -o allow_other -o "
207
+ " Compression=no -o dcache_timeout=3 :\" source\" "
207
208
" \" target\" " ,
208
209
" don't care\n " }};
209
210
};
@@ -296,21 +297,22 @@ INSTANTIATE_TEST_SUITE_P(SshfsMountThrowWhenError, SshfsMountFail,
296
297
testing::Values (" mkdir" , " chown" , " id -u" , " id -g" , " cd" , " echo $PWD" ));
297
298
298
299
// Commands to check that a version of FUSE smaller that 3 gives a correct answer.
299
- CommandVector old_fuse_cmds = {{" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -V" , " FUSE library version: 2.9.0\n " },
300
- {" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -o slave -o transform_symlinks -o "
301
- " allow_other -o nonempty :\" source\" \" /home/ubuntu/target\" " ,
302
- " don't care\n " }};
300
+ CommandVector old_fuse_cmds = {
301
+ {" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -V" , " FUSE library version: 2.9.0\n " },
302
+ {" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -o slave -o transform_symlinks -o "
303
+ " allow_other -o Compression=no -o nonempty -o cache_timeout=3 :\" source\" \" /home/ubuntu/target\" " ,
304
+ " don't care\n " }};
303
305
304
306
// Commands to check that a version of FUSE at least 3.0.0 gives a correct answer.
305
307
CommandVector new_fuse_cmds = {{" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -V" , " FUSE library version: 3.0.0\n " },
306
308
{" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -o slave -o transform_symlinks -o "
307
- " allow_other :\" source\" \" /home/ubuntu/target\" " ,
309
+ " allow_other -o Compression=no -o dcache_timeout=3 :\" source\" \" /home/ubuntu/target\" " ,
308
310
" don't care\n " }};
309
311
310
312
// Commands to check that an unknown version of FUSE gives a correct answer.
311
313
CommandVector unk_fuse_cmds = {{" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -V" , " weird fuse version\n " },
312
314
{" sudo env LD_LIBRARY_PATH=/foo/bar /baz/bin/sshfs -o slave -o transform_symlinks -o "
313
- " allow_other :\" source\" \" /home/ubuntu/target\" " ,
315
+ " allow_other -o Compression=no :\" source\" \" /home/ubuntu/target\" " ,
314
316
" don't care\n " }};
315
317
316
318
// Commands to check that the server correctly creates the mount target.
0 commit comments