opnsense-src/tests/sys/fs/fusefs
Alan Somers 3227325366 fusefs: fix two bugs regarding VOP_RECLAIM of the root inode
* We never send FUSE_LOOKUP for the root inode, since its inode number
  is hard-coded to 1.  Therefore, we should not send FUSE_FORGET for it,
  lest the server see its lookup count fall below 0.

* During VOP_RECLAIM, if we are reclaiming the root inode, we must clear
  the file system's vroot pointer.  Otherwise it will be left pointing
  at a reclaimed vnode, which will cause future VOP_LOOKUP operations to
  fail.  Previously we only cleared that pointer during VFS_UMOUNT.  I
  don't know of any real-world way to trigger this bug.

MFC after:	2 weeks
Reviewed by:	pfg
Differential Revision: https://reviews.freebsd.org/D34753
2022-04-06 16:16:52 -06:00
..
access.cc Fix issues with FUSE_ACCESS when default_permissions is disabled 2020-05-22 18:11:17 +00:00
allow_other.cc fusefs tests: quell Coverity "Argument cannot be negative" warnings 2020-10-02 17:06:05 +00:00
bmap.cc fusefs: fix a recurse-on-non-recursive lockmgr panic 2021-10-06 14:07:33 -06:00
cache.cc fusefs: update atime on reads when using cached attributes 2021-11-28 18:53:31 -07:00
copy_file_range.cc fusefs: copy_file_range must update file timestamps 2021-12-31 17:43:57 -07:00
create.cc fusefs tests: quell Coverity "Argument cannot be negative" warnings 2020-10-02 17:06:05 +00:00
default_permissions.cc fusefs: implement VOP_DEALLOCATE 2022-01-18 21:13:02 -07:00
default_permissions_privileged.cc fusefs: fix two small bugs in the tests' expectations 2020-05-08 23:00:02 +00:00
destroy.cc fusefs: fix two bugs regarding VOP_RECLAIM of the root inode 2022-04-06 16:16:52 -06:00
dev_fuse_poll.cc fusefs: fix two bugs regarding VOP_RECLAIM of the root inode 2022-04-06 16:16:52 -06:00
fallocate.cc fusefs: implement VOP_DEALLOCATE 2022-01-18 21:13:02 -07:00
fifo.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
flush.cc fusefs: fix two bugs regarding fcntl file locks 2021-03-18 17:09:10 -06:00
forget.cc fusefs: fix two bugs regarding VOP_RECLAIM of the root inode 2022-04-06 16:16:52 -06:00
fsync.cc fusefs: fix fsync for files with multiple open handles 2020-03-09 01:57:21 +00:00
fsyncdir.cc fusefs: skip some tests when unsafe aio is disabled 2019-08-13 15:52:28 +00:00
getattr.cc fusefs: correctly handle an inode that changes file types 2021-12-06 21:36:46 -07:00
interrupt.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
io.cc fusefs: update atime on reads when using cached attributes 2021-11-28 18:53:31 -07:00
last_local_modify.cc fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
link.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
locks.cc fusefs: correctly set lock owner during FUSE_SETLK 2021-06-25 20:40:08 -06:00
lookup.cc fusefs: fix two bugs regarding VOP_RECLAIM of the root inode 2022-04-06 16:16:52 -06:00
lseek.cc fusefs: update FUSE protocol to 7.24 and implement FUSE_LSEEK 2020-12-31 08:51:47 -07:00
Makefile fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
mkdir.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
mknod.cc fusefs: initialize C++ classes the Coverity way 2019-09-16 15:56:21 +00:00
mockfs.cc fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
mockfs.hh fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
mount.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
nfs.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
notify.cc [skip ci] fix typo in comment in the fusefs tests 2020-03-09 00:14:09 +00:00
open.cc fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
opendir.cc fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
read.cc [skip ci] fusefs: delete a stray comment from 91972cfcdd 2022-02-12 09:27:56 -07:00
readdir.cc fusefs: set d_off during VOP_READDIR 2021-02-12 21:50:52 -07:00
readlink.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
release.cc fusefs: fix two bugs regarding fcntl file locks 2021-03-18 17:09:10 -06:00
releasedir.cc fusefs tests: quell Coverity "Argument cannot be negative" warnings 2020-10-02 17:06:05 +00:00
rename.cc fusefs: fix a cached attributes bug during directory rename 2022-02-24 14:07:25 -07:00
rmdir.cc Fix issues with FUSE_ACCESS when default_permissions is disabled 2020-05-22 18:11:17 +00:00
setattr.cc Explicitly include semaphore.h for struct _sem in fusefs setattr test 2022-02-06 17:07:28 +01:00
statfs.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
symlink.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
unlink.cc Fix issues with FUSE_ACCESS when default_permissions is disabled 2020-05-22 18:11:17 +00:00
utils.cc fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
utils.hh fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
write.cc fusefs: Fix a bug during VOP_STRATEGY when the server changes file size 2021-10-06 14:07:33 -06:00
xattr.cc Fix issues with FUSE_ACCESS when default_permissions is disabled 2020-05-22 18:11:17 +00:00