FreeBSD Bugzilla – Attachment 183449 Details for
Bug 210721
Rerooting to an imported ZFS pool triggers panic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
spa_import_rootpool.reboot-r.diff (text/plain), 763 bytes, created by
Andriy Gapon
on 2017-06-13 16:04:52 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Andriy Gapon
Created:
2017-06-13 16:04:52 UTC
Size:
763 bytes
patch
obsolete
>diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c >index cffeef1ecad95..b8dffba71f585 100644 >--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c >+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c >@@ -4485,6 +4485,16 @@ spa_import_rootpool(const char *name) > > if ((spa = spa_lookup(pname)) != NULL) { > /* >+ * The pool could already be imported, >+ * e.g., after reboot -r. >+ */ >+ if (spa->spa_state != POOL_STATE_UNINITIALIZED) { >+ mutex_exit(&spa_namespace_lock); >+ nvlist_free(config); >+ return (0); >+ } >+ >+ /* > * Remove the existing root pool from the namespace so > * that we can replace it with the correct config > * we just read in.
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 210721
:
171971
| 183449