HomeFreeBSD

More careful handling of the mount failure.

Description

More careful handling of the mount failure.

  • VFS_UNMOUNT() requires vn_start_write() around it [*].
  • call VFS_PURGE() before unmount.
  • do not destroy mp if cleanup unmount did not succeed.
  • set MNTK_UNMOUNT, and indicate forced unmount with MNTK_UNMOUNTF for VFS_UNMOUNT() in cleanup.

PR: 251320 [*]
Reported by: Tong Zhang <ztong0001@gmail.com>
Reviewed by: markj, mjg
Discussed with: rmacklem
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D27327

Details

Provenance
kibAuthored on
Reviewer
markj
Differential Revision
D27327: More careful handling of the mount failure.
Parents
rS368074: clear_inodedeps: handle ERELOOKUP from ffs_syncvnode().
Branches
Unknown
Tags
Unknown