[Bug 251320] [PATCH] vfs_domount_first: do not crash on mount failure

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 26 18:08:55 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251320

--- Comment #7 from commit-hook at FreeBSD.org ---
A commit references this bug:

Author: kib
Date: Thu Nov 26 18:08:42 UTC 2020
New revision: 368075
URL: https://svnweb.freebsd.org/changeset/base/368075

Log:
  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 at gmail.com>
  Reviewed by:  markj, mjg
  Discussed with:       rmacklem
  Sponsored by: The FreeBSD Foundation
  Differential revision:        https://reviews.freebsd.org/D27327

Changes:
  head/sys/kern/vfs_mount.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list