Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2020 18:08:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251320] [PATCH] vfs_domount_first: do not crash on mount failure
Message-ID:  <bug-251320-227-IrVtuUc1Q0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251320-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

--- Comment #7 from commit-hook@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@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.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251320-227-IrVtuUc1Q0>