HomeFreeBSD

Add descrip_check_write_mp() helper

Description

Add descrip_check_write_mp() helper

... which verifies that given file table does not have file descriptors
referencing vnodes on the specified mount point. It is up to the caller
to ensure that the check is not racy.

Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D37896

Details

Provenance
kibAuthored on Dec 28 2022, 6:13 PM
Reviewer
mckusick
Differential Revision
D37896: ufs/suspend: deny suspension if calliing process has file from mp opened for write
Parents
rG4ac8f4067096: Follow the standard object definition from RFC2578
Branches
Unknown
Tags
Unknown