HomeFreeBSD

File systems that do not use the buffer cache (such as ZFS) must

Description

File systems that do not use the buffer cache (such as ZFS) must
use VOP_FSYNC() to perform the NFS server's Commit operation.
This patch adds a mnt_kern_flag called MNTK_USES_BCACHE which
is set by file systems that use the buffer cache. If this flag
is not set, the NFS server always does a VOP_FSYNC().
This should be ok for old file system modules that do not set
MNTK_USES_BCACHE, since calling VOP_FSYNC() is correct, although
it might not be optimal for file systems that use the buffer cache.

Reviewed by: kib
MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on
Parents
rS281561: Prior to aborting due to an ioport error, it is always interesting to
Branches
Unknown
Tags
Unknown

Event Timeline