FreeBSD Bugzilla – Attachment 225827 Details for
Bug 256511
UFS assertion failure when shutting down from single-user mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix panic on shutdown
ffs-fix.patch (text/plain), 509 bytes, created by
Robert Wing
on 2021-06-15 13:13:39 UTC
(
hide
)
Description:
fix panic on shutdown
Filename:
MIME Type:
Creator:
Robert Wing
Created:
2021-06-15 13:13:39 UTC
Size:
509 bytes
patch
obsolete
>diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c >index 6b7407eb88f9..c29eaf45ba66 100644 >--- a/sys/ufs/ffs/ffs_vfsops.c >+++ b/sys/ufs/ffs/ffs_vfsops.c >@@ -748,8 +748,11 @@ ffs_mount(struct mount *mp) > error1 = vfs_busy(mp, MBF_NOWAIT); > MPASS(error1 == 0); > } >- if (error != 0) >+ if (error != 0) { >+ /* fixes the panic, but lacks completeness */ >+ softdep_unmount(mp); > return (error); >+ } > NDFREE(&ndp, NDF_ONLY_PNBUF); > devvp = ndp.ni_vp; > if (!vn_isdisk_error(devvp, &error)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256511
: 225827