| #
6a773a05
|
| 05-Oct-2023 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: add more readdir tests for misbehaving servers
Inspired by PR 274268
MFC after: 2 weeks Sponsored by: Axcient
|
| #
b3e76948
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
4d846d26
|
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
| #
71befc35
|
| 12-Feb-2021 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: set d_off during VOP_READDIR
This allows d_off to be used with lseek to position the file so that getdirentries(2) will return the next entry. It is not used by readdir(3).
PR: 253411 Rep
fusefs: set d_off during VOP_READDIR
This allows d_off to be used with lseek to position the file so that getdirentries(2) will return the next entry. It is not used by readdir(3).
PR: 253411 Reported by: John Millikin <jmillikin@gmail.com> Reviewed by: cem MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28605
show more ...
|
| #
1fa8ebfb
|
| 13-Aug-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: add SVN Keywords to the test files
Reported by: SVN pre-commit hooks MFC after: 15 days MFC-With: r350665 Sponsored by: The FreeBSD Foundation
|
| #
f0c07f0c
|
| 30-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: nul-terminate some strings in the readdir test
Reported by: GCC 8 Sponsored by: The FreeBSD Foundation
|
| #
5a0b9a27
|
| 20-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: fix warnings in the tests reported by GCC
Sponsored by: The FreeBSD Foundation
|
| #
7fc0921d
|
| 26-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: annotate deliberate file descriptor leaks in the tests
closing a file descriptor causes FUSE activity that is superfluous to the purpose of most tests, but would nonetheless require matching
fusefs: annotate deliberate file descriptor leaks in the tests
closing a file descriptor causes FUSE activity that is superfluous to the purpose of most tests, but would nonetheless require matching expectations. Rather than do that, most tests deliberately leak file descriptors instead. This commit moves the leakage from each test into two trivial functions: leak and leakdir. Hopefully Coverity will only complain about those functions and not all of their callers.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
29edc611
|
| 27-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: make the tests more cplusplusy
* Prefer std::unique_ptr to raw pointers * Prefer pass-by-reference to pass-by-pointer * Prefer static_cast to C-style cast, unless it's too much typing
Repor
fusefs: make the tests more cplusplusy
* Prefer std::unique_ptr to raw pointers * Prefer pass-by-reference to pass-by-pointer * Prefer static_cast to C-style cast, unless it's too much typing
Reported by: ngie Sponsored by: The FreeBSD Foundation
show more ...
|
| #
e5b50fe7
|
| 23-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: Make fuse file systems NFS-exportable
This commit adds the VOPs needed by userspace NFS servers (tested with net/unfs3). More work is needed to make the in-kernel nfsd work, because of its
fusefs: Make fuse file systems NFS-exportable
This commit adds the VOPs needed by userspace NFS servers (tested with net/unfs3). More work is needed to make the in-kernel nfsd work, because of its stateless nature. It doesn't open files prior to doing I/O. Also, the NFS-related VOPs currently ignore the entry cache.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
16bd2d47
|
| 16-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: Upgrade FUSE protocol to version 7.9.
This commit upgrades the FUSE API to protocol 7.9 and adds unit tests for backwards compatibility with servers built for version 7.8. It doesn't implem
fusefs: Upgrade FUSE protocol to version 7.9.
This commit upgrades the FUSE API to protocol 7.9 and adds unit tests for backwards compatibility with servers built for version 7.8. It doesn't implement any of 7.9's new features yet.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
35cf0e7e
|
| 03-Apr-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: fix a panic in VOP_READDIR
The original fusefs import, r238402, contained a bug in fuse_vnop_close that could close a directory's file handle while there were still other open file descripto
fusefs: fix a panic in VOP_READDIR
The original fusefs import, r238402, contained a bug in fuse_vnop_close that could close a directory's file handle while there were still other open file descriptors. The code looks deliberate, but there is no explanation for it. This necessitated a workaround in fuse_vnop_readdir that would open a new file handle if, "for some mysterious reason", that vnode didn't have any open file handles. r345781 had the effect of causing the workaround to panic, making the problem more visible.
This commit removes the workaround and the original bug, which also fixes the panic.
Sponsored by: The FreeBSD Foundation
show more ...
|
| #
363a7416
|
| 01-Apr-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: allow opening files O_EXEC
O_EXEC is useful for fexecve(2) and fchdir(2). Treat it as another fufh type alongside the existing RDONLY, WRONLY, and RDWR. Prior to r345742 this would've caus
fusefs: allow opening files O_EXEC
O_EXEC is useful for fexecve(2) and fchdir(2). Treat it as another fufh type alongside the existing RDONLY, WRONLY, and RDWR. Prior to r345742 this would've caused a memory and performance penalty.
PR: 236329 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
e0bec057
|
| 27-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: correctly set fuse_release_in.flags in an error path
fuse_vnop_create must close the newly created file if it can't allocate a vnode. When it does so, it must use the same file flags for FU
fusefs: correctly set fuse_release_in.flags in an error path
fuse_vnop_create must close the newly created file if it can't allocate a vnode. When it does so, it must use the same file flags for FUSE_RELEASE as it used for FUSE_OPEN or FUSE_CREATE.
Reported by: Coverity Coverity CID: 1066204 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
4a4282cb
|
| 27-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
FUSEFS: during FUSE_READDIR, set the read size correctly.
The old formula was unnecessarily restrictive.
Sponsored by: The FreeBSD Foundation
|
| #
9821f1d3
|
| 21-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
fusefs: adapt the tests to the fuse => fusefs rename
Sponsored by: The FreeBSD Foundation
|
| #
51786f27
|
| 15-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
fuse(4): add tests for the FOPEN_KEEP_CACHE option
PR: 236560 Sponsored by: The FreeBSD Foundation
|
| #
90384791
|
| 15-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
fuse(4): combine common code in the tests
Sponsored by: The FreeBSD Foundation
|
| #
94ef9d62
|
| 14-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
fuse(4): add tests for FUSE_INTERRUPT
This required changing the way that all operations are mocked. Previously MockFS::process had one input argument and one output argument. Now, it returns a ve
fuse(4): add tests for FUSE_INTERRUPT
This required changing the way that all operations are mocked. Previously MockFS::process had one input argument and one output argument. Now, it returns a vector of zero or more responses. This allows tests to simulate conditions where the filesystem daemon has a queue depth > 1.
PR: 236530 Sponsored by: The FreeBSD Foundation
show more ...
|
| #
0e125f5f
|
| 14-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
fuse(4): combine common code in the tests
Combine a bunch of mostly similar expect_* methods into utils.cc, and only define FH in a single place.
Sponsored by: The FreeBSD Foundation
|
| #
0f10547b
|
| 12-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
fuse(4): add tests for opendir and readdir
Sponsored by: The FreeBSD Foundation
|