opnsense-src/sys/fs/fuse
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
..
fuse.h [skip ci] update copyright headers in fusefs files 2019-06-28 04:18:10 +00:00
fuse_device.c modules: increase MAXMODNAME and provide backward compat 2021-12-09 18:09:53 +00:00
fuse_file.c fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_file.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_internal.c fusefs: Initialize a pad word in the mknod message 2022-03-17 18:30:21 -04:00
fuse_internal.h fusefs: require FUSE_NO_OPENDIR_SUPPORT for NFS exporting 2022-02-04 16:31:05 -07:00
fuse_io.c fusefs: Address -Wunused-but-set-variable warnings 2022-01-20 08:25:00 -05:00
fuse_io.h fusefs: inline fuse_io_dispatch 2021-12-06 21:41:50 -07:00
fuse_ipc.c fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
fuse_ipc.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_kernel.h fusefs: implement VOP_DEALLOCATE 2022-01-18 21:13:02 -07:00
fuse_main.c modules: increase MAXMODNAME and provide backward compat 2021-12-09 18:09:53 +00:00
fuse_node.c fusefs: Address -Wunused-but-set-variable warnings 2022-01-20 08:25:00 -05:00
fuse_node.h Fix a race in fusefs that can corrupt a file's size. 2021-12-31 17:38:42 -07:00
fuse_vfsops.c vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd) 2022-03-24 10:20:51 +00:00
fuse_vnops.c fusefs: fix two bugs regarding VOP_RECLAIM of the root inode 2022-04-06 16:16:52 -06:00