sys/vfs/fuse: Some mmap related fixes, issues with sshfs and FUSE_FORGET
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 16 Mar 2024 23:53:22 +0000 (16:53 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 16 Mar 2024 23:53:22 +0000 (16:53 -0700)
commit887de9e3548f7044c6016d8242b2070af67021b2
tree07a1c04f4087490510ba83c8b494cb3ec1efc475
parent1a8e5e4cf0cfbe16676810f7edca73f98bb9b8f5
sys/vfs/fuse: Some mmap related fixes, issues with sshfs and FUSE_FORGET

* Only issue FUSE_FSYNC when there is a file-handle associated with
  the fuse_node.

* Be sure to flush the VM object on inactive before releasing the
  file handle (fixes issues with mmap()).

* Don't issue FUSE_FORGET for now, it seems to confuse sshfs so either
  I'm doing something wrong or ... don't know.
sys/vfs/fuse/fuse_vnops.c